Package org.rocksdb
Class SkipListMemTableConfig
- java.lang.Object
-
- org.rocksdb.MemTableConfig
-
- org.rocksdb.SkipListMemTableConfig
-
public class SkipListMemTableConfig extends MemTableConfig
The config for skip-list memtable representation.
-
-
Field Summary
Fields Modifier and Type Field Description static longDEFAULT_LOOKAHEAD
-
Constructor Summary
Constructors Constructor Description SkipListMemTableConfig()SkipListMemTableConfig constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longlookahead()Returns the currently set lookahead value.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.SkipListMemTableConfigsetLookahead(long lookahead)Sets lookahead for SkipList
-
-
-
Field Detail
-
DEFAULT_LOOKAHEAD
public static final long DEFAULT_LOOKAHEAD
- See Also:
- Constant Field Values
-
-
Method Detail
-
setLookahead
public SkipListMemTableConfig setLookahead(long lookahead)
Sets lookahead for SkipList- Parameters:
lookahead- If non-zero, each iterator's seek operation will start the search from the previously visited record (doing at most 'lookahead' steps). This is an optimization for the access pattern including many seeks with consecutive keys.- Returns:
- the current instance of SkipListMemTableConfig
-
lookahead
public long lookahead()
Returns the currently set lookahead value.- Returns:
- lookahead value
-
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)
-
-