public class HashSkipListMemTableConfig extends MemTableConfig
Note that since this mem-table representation relies on the key prefix, it is required to invoke one of the usePrefixExtractor functions to specify how to extract key prefix given a key. If proper prefix-extractor is not set, then RocksDB will use the default memtable representation (SkipList) instead and post a warning in the LOG.
| 限定符和类型 | 字段和说明 |
|---|---|
static int |
DEFAULT_BRANCHING_FACTOR |
static int |
DEFAULT_BUCKET_COUNT |
static int |
DEFAULT_HEIGHT |
| 构造器和说明 |
|---|
HashSkipListMemTableConfig()
HashSkipListMemTableConfig constructor
|
| 限定符和类型 | 方法和说明 |
|---|---|
int |
branchingFactor() |
long |
bucketCount() |
int |
height() |
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.
|
HashSkipListMemTableConfig |
setBranchingFactor(int bf)
Set the branching factor used in the hash skip-list memtable.
|
HashSkipListMemTableConfig |
setBucketCount(long count)
Set the number of hash buckets used in the hash skiplist memtable.
|
HashSkipListMemTableConfig |
setHeight(int height)
Set the height of the skip list.
|
public static final int DEFAULT_BUCKET_COUNT
public static final int DEFAULT_BRANCHING_FACTOR
public static final int DEFAULT_HEIGHT
public HashSkipListMemTableConfig()
public HashSkipListMemTableConfig setBucketCount(long count)
count - the number of hash buckets used in the hash
skiplist memtable.public long bucketCount()
public HashSkipListMemTableConfig setHeight(int height)
height - height to set.public int height()
public HashSkipListMemTableConfig setBranchingFactor(int bf)
bf - the probabilistic size ratio between adjacent link
lists in the skip list.public int branchingFactor()
protected long newMemTableFactoryHandle()
MemTableConfignewMemTableFactoryHandle 在类中 MemTableConfigOptions.setMemTableConfig(MemTableConfig)