Package org.rocksdb
Class VectorMemTableConfig
java.lang.Object
org.rocksdb.MemTableConfig
org.rocksdb.VectorMemTableConfig
The config for vector memtable representation.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected longThis 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.intReturns the initial size of the vector used by the memtable created based on this config.setReservedSize(int size) Set the initial size of the vector that will be used by the memtable created based on this config.
-
Field Details
-
DEFAULT_RESERVED_SIZE
public static final int DEFAULT_RESERVED_SIZE- See Also:
-
-
Constructor Details
-
VectorMemTableConfig
public VectorMemTableConfig()VectorMemTableConfig constructor
-
-
Method Details
-
setReservedSize
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:MemTableConfigThis 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:
newMemTableFactoryHandlein classMemTableConfig- Returns:
- native handle address to native memory table instance.
- See Also:
-