public class SkipListMemTableConfig extends MemTableConfig
| 限定符和类型 | 字段和说明 |
|---|---|
static long |
DEFAULT_LOOKAHEAD |
| 构造器和说明 |
|---|
SkipListMemTableConfig()
SkipListMemTableConfig constructor
|
| 限定符和类型 | 方法和说明 |
|---|---|
long |
lookahead()
Returns the currently set lookahead value.
|
protected long |
newMemTableFactoryHandle()
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.
|
SkipListMemTableConfig |
setLookahead(long lookahead)
Sets lookahead for SkipList
|
public static final long DEFAULT_LOOKAHEAD
public SkipListMemTableConfig setLookahead(long lookahead)
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.public long lookahead()
protected long newMemTableFactoryHandle()
MemTableConfignewMemTableFactoryHandle 在类中 MemTableConfigOptions.setMemTableConfig(MemTableConfig)