Package org.rocksdb
Class SkipListMemTableConfig
java.lang.Object
org.rocksdb.MemTableConfig
org.rocksdb.SkipListMemTableConfig
The config for skip-list memtable representation.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlongReturns the currently set lookahead value.protected 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.setLookahead(long lookahead) Sets lookahead for SkipList
-
Field Details
-
DEFAULT_LOOKAHEAD
public static final long DEFAULT_LOOKAHEAD- See Also:
-
-
Constructor Details
-
SkipListMemTableConfig
public SkipListMemTableConfig()SkipListMemTableConfig constructor
-
-
Method Details
-
setLookahead
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:
-