Package org.rocksdb

Class VectorMemTableConfig

java.lang.Object
org.rocksdb.MemTableConfig
org.rocksdb.VectorMemTableConfig

public class VectorMemTableConfig extends MemTableConfig
The config for vector memtable representation.
  • Field Details

  • Constructor Details

    • VectorMemTableConfig

      public VectorMemTableConfig()
      VectorMemTableConfig constructor
  • Method Details

    • setReservedSize

      public VectorMemTableConfig setReservedSize(int size)
      Set the initial size of the vector that will be used by the memtable created based on this config.
      Parameters:
      size - the initial size of the vector.
      Returns:
      the reference to the current config.
    • reservedSize

      public int reservedSize()
      Returns the initial size of the vector used by the memtable created based on this config.
      Returns:
      the initial size of the vector.
    • newMemTableFactoryHandle

      protected long newMemTableFactoryHandle()
      Description copied from class: MemTableConfig
      This function should only be called by Options.setMemTableConfig(), which will create a c++ shared-pointer to the c++ MemTableRepFactory that associated with the Java MemTableConfig.
      Specified by:
      newMemTableFactoryHandle in class MemTableConfig
      Returns:
      native handle address to native memory table instance.
      See Also: