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 Summary
Fields Modifier and Type Field Description static intDEFAULT_RESERVED_SIZE
-
Constructor Summary
Constructors Constructor Description VectorMemTableConfig()VectorMemTableConfig constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected longnewMemTableFactoryHandle()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.intreservedSize()Returns the initial size of the vector used by the memtable created based on this config.VectorMemTableConfigsetReservedSize(int size)Set the initial size of the vector that will be used by the memtable created based on this config.
-
-
-
Field Detail
-
DEFAULT_RESERVED_SIZE
public static final int DEFAULT_RESERVED_SIZE
- See Also:
- Constant Field Values
-
-
Method Detail
-
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: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:
Options.setMemTableConfig(MemTableConfig)
-
-