public class ColumnFamilyOptions extends RocksObject implements ColumnFamilyOptionsInterface
RocksDB
(i.e., RocksDB.open()).
If RocksObject.dispose()
function is not called, then it will be GC'd automatically
and native resources will be released as part of the process.nativeHandle_
DEFAULT_COMPACTION_MEMTABLE_MEMORY_BUDGET
Constructor and Description |
---|
ColumnFamilyOptions()
Construct ColumnFamilyOptions.
|
Modifier and Type | Method and Description |
---|---|
long |
arenaBlockSize()
The size of one block in arena memory allocation.
|
int |
bloomLocality()
Control locality of bloom filter probes to improve cache miss rate.
|
CompactionStyle |
compactionStyle()
Compaction style for DB.
|
CompressionType |
compressionType()
Compress blocks using the specified compression algorithm.
|
boolean |
disableAutoCompactions()
Disable automatic compactions.
|
protected void |
disposeInternal()
Release the memory allocated for the current instance
in the c++ side.
|
int |
expandedCompactionFactor()
Maximum number of bytes in all compacted files.
|
boolean |
filterDeletes()
Use KeyMayExist API to filter deletes when this is true.
|
static ColumnFamilyOptions |
getColumnFamilyOptionsFromProps(java.util.Properties properties)
Method to get a options instance by using pre-configured
property values.
|
double |
hardRateLimit()
Puts are delayed 1ms at a time when any level has a compaction score that
exceeds hard_rate_limit.
|
long |
inplaceUpdateNumLocks()
Number of locks used for inplace update
Default: 10000, if inplace_update_support = true, else 0.
|
boolean |
inplaceUpdateSupport()
Allows thread-safe inplace updates.
|
int |
levelZeroFileNumCompactionTrigger()
The number of files in level 0 to trigger compaction from level-0 to
level-1.
|
int |
levelZeroSlowdownWritesTrigger()
Soft limit on the number of level-0 files.
|
int |
levelZeroStopWritesTrigger()
Maximum number of level-0 files.
|
long |
maxBytesForLevelBase()
The upper-bound of the total size of level-1 files in bytes.
|
int |
maxBytesForLevelMultiplier()
The ratio between the total size of level-(L+1) files and the total
size of level-L files for all L.
|
int |
maxGrandparentOverlapFactor()
Control maximum bytes of overlaps in grandparent (i.e., level+2) before we
stop building a single file in a level->level+1 compaction.
|
int |
maxMemCompactionLevel()
The highest level to which a new compacted memtable is pushed if it
does not create overlap.
|
long |
maxSequentialSkipInIterations()
An iteration->Next() sequentially skips over keys with the same
user-key unless this option is set.
|
long |
maxSuccessiveMerges()
Maximum number of successive merge operations on a key in the memtable.
|
int |
maxWriteBufferNumber()
Returns maximum number of write buffers.
|
java.lang.String |
memTableFactoryName()
Returns the name of the current mem table representation.
|
int |
memtablePrefixBloomBits()
Returns the number of bits used in the prefix bloom filter.
|
int |
memtablePrefixBloomProbes()
The number of hash probes per key used in the mem-table.
|
int |
minPartialMergeOperands()
The number of partial merge operands to accumulate before partial
merge will be performed.
|
int |
minWriteBufferNumberToMerge()
The minimum number of write buffers that will be merged together
before writing to storage.
|
int |
numLevels()
If level-styled compaction is used, then this number determines
the total number of levels.
|
ColumnFamilyOptions |
optimizeForPointLookup(long blockCacheSizeMb)
Use this if you don't need to keep the data sorted, i.e.
|
ColumnFamilyOptions |
optimizeLevelStyleCompaction()
Default values for some parameters in ColumnFamilyOptions are not
optimized for heavy workloads and big datasets, which means you might
observe write stalls under some conditions.
|
ColumnFamilyOptions |
optimizeLevelStyleCompaction(long memtableMemoryBudget)
Default values for some parameters in ColumnFamilyOptions are not
optimized for heavy workloads and big datasets, which means you might
observe write stalls under some conditions.
|
ColumnFamilyOptions |
optimizeUniversalStyleCompaction()
Default values for some parameters in ColumnFamilyOptions are not
optimized for heavy workloads and big datasets, which means you might
observe write stalls under some conditions.
|
ColumnFamilyOptions |
optimizeUniversalStyleCompaction(long memtableMemoryBudget)
Default values for some parameters in ColumnFamilyOptions are not
optimized for heavy workloads and big datasets, which means you might
observe write stalls under some conditions.
|
boolean |
purgeRedundantKvsWhileFlush()
Purge duplicate/deleted keys when a memtable is flushed to storage.
|
int |
rateLimitDelayMaxMilliseconds()
The maximum time interval a put will be stalled when hard_rate_limit
is enforced.
|
ColumnFamilyOptions |
setArenaBlockSize(long arenaBlockSize)
The size of one block in arena memory allocation.
|
ColumnFamilyOptions |
setBloomLocality(int bloomLocality)
Control locality of bloom filter probes to improve cache miss rate.
|
ColumnFamilyOptions |
setCompactionStyle(CompactionStyle compactionStyle)
Set compaction style for DB.
|
ColumnFamilyOptions |
setComparator(AbstractComparator comparator)
Use the specified comparator for key ordering.
|
ColumnFamilyOptions |
setComparator(BuiltinComparator builtinComparator)
Set
BuiltinComparator to be used with RocksDB. |
ColumnFamilyOptions |
setCompressionType(CompressionType compressionType)
Compress blocks using the specified compression algorithm.
|
ColumnFamilyOptions |
setDisableAutoCompactions(boolean disableAutoCompactions)
Disable automatic compactions.
|
ColumnFamilyOptions |
setExpandedCompactionFactor(int expandedCompactionFactor)
Maximum number of bytes in all compacted files.
|
ColumnFamilyOptions |
setFilterDeletes(boolean filterDeletes)
Use KeyMayExist API to filter deletes when this is true.
|
ColumnFamilyOptions |
setHardRateLimit(double hardRateLimit)
Puts are delayed 1ms at a time when any level has a compaction score that
exceeds hard_rate_limit.
|
ColumnFamilyOptions |
setInplaceUpdateNumLocks(long inplaceUpdateNumLocks)
Number of locks used for inplace update
Default: 10000, if inplace_update_support = true, else 0.
|
ColumnFamilyOptions |
setInplaceUpdateSupport(boolean inplaceUpdateSupport)
Allows thread-safe inplace updates.
|
ColumnFamilyOptions |
setLevelZeroFileNumCompactionTrigger(int numFiles)
Number of files to trigger level-0 compaction.
|
ColumnFamilyOptions |
setLevelZeroSlowdownWritesTrigger(int numFiles)
Soft limit on number of level-0 files.
|
ColumnFamilyOptions |
setLevelZeroStopWritesTrigger(int numFiles)
Maximum number of level-0 files.
|
ColumnFamilyOptions |
setMaxBytesForLevelBase(long maxBytesForLevelBase)
The upper-bound of the total size of level-1 files in bytes.
|
ColumnFamilyOptions |
setMaxBytesForLevelMultiplier(int multiplier)
The ratio between the total size of level-(L+1) files and the total
size of level-L files for all L.
|
ColumnFamilyOptions |
setMaxGrandparentOverlapFactor(int maxGrandparentOverlapFactor)
Control maximum bytes of overlaps in grandparent (i.e., level+2) before we
stop building a single file in a level->level+1 compaction.
|
ColumnFamilyOptions |
setMaxMemCompactionLevel(int maxMemCompactionLevel)
The highest level to which a new compacted memtable is pushed if it
does not create overlap.
|
ColumnFamilyOptions |
setMaxSequentialSkipInIterations(long maxSequentialSkipInIterations)
An iteration->Next() sequentially skips over keys with the same
user-key unless this option is set.
|
ColumnFamilyOptions |
setMaxSuccessiveMerges(long maxSuccessiveMerges)
Maximum number of successive merge operations on a key in the memtable.
|
ColumnFamilyOptions |
setMaxWriteBufferNumber(int maxWriteBufferNumber)
The maximum number of write buffers that are built up in memory.
|
ColumnFamilyOptions |
setMemTableConfig(MemTableConfig config)
Set the config for mem-table.
|
ColumnFamilyOptions |
setMemtablePrefixBloomBits(int memtablePrefixBloomBits)
Sets the number of bits used in the prefix bloom filter.
|
ColumnFamilyOptions |
setMemtablePrefixBloomProbes(int memtablePrefixBloomProbes)
The number of hash probes per key used in the mem-table.
|
ColumnFamilyOptions |
setMergeOperator(MergeOperator mergeOperator)
Set the merge operator to be used for merging two different key/value
pairs that share the same key.
|
ColumnFamilyOptions |
setMergeOperatorName(java.lang.String name)
Set the merge operator to be used for merging two merge operands
of the same key.
|
ColumnFamilyOptions |
setMinPartialMergeOperands(int minPartialMergeOperands)
The number of partial merge operands to accumulate before partial
merge will be performed.
|
ColumnFamilyOptions |
setMinWriteBufferNumberToMerge(int minWriteBufferNumberToMerge)
The minimum number of write buffers that will be merged together
before writing to storage.
|
ColumnFamilyOptions |
setNumLevels(int numLevels)
Set the number of levels for this database
If level-styled compaction is used, then this number determines
the total number of levels.
|
ColumnFamilyOptions |
setPurgeRedundantKvsWhileFlush(boolean purgeRedundantKvsWhileFlush)
Purge duplicate/deleted keys when a memtable is flushed to storage.
|
ColumnFamilyOptions |
setRateLimitDelayMaxMilliseconds(int rateLimitDelayMaxMilliseconds)
The maximum time interval a put will be stalled when hard_rate_limit
is enforced.
|
ColumnFamilyOptions |
setSoftRateLimit(double softRateLimit)
Puts are delayed 0-1 ms when any level has a compaction score that exceeds
soft_rate_limit.
|
ColumnFamilyOptions |
setSourceCompactionFactor(int sourceCompactionFactor)
Maximum number of bytes in all source files to be compacted in a
single compaction run.
|
ColumnFamilyOptions |
setTableFormatConfig(TableFormatConfig config)
Set the config for table format.
|
ColumnFamilyOptions |
setTargetFileSizeBase(long targetFileSizeBase)
The target file size for compaction.
|
ColumnFamilyOptions |
setTargetFileSizeMultiplier(int multiplier)
targetFileSizeMultiplier defines the size ratio between a
level-L file and level-(L+1) file.
|
ColumnFamilyOptions |
setVerifyChecksumsInCompaction(boolean verifyChecksumsInCompaction)
If true, compaction will verify checksum on every read that happens
as part of compaction
Default: true
|
ColumnFamilyOptions |
setWriteBufferSize(long writeBufferSize)
Amount of data to build up in memory (backed by an unsorted log
on disk) before converting to a sorted on-disk file.
|
double |
softRateLimit()
Puts are delayed 0-1 ms when any level has a compaction score that exceeds
soft_rate_limit.
|
int |
sourceCompactionFactor()
Maximum number of bytes in all source files to be compacted in a
single compaction run.
|
java.lang.String |
tableFactoryName() |
long |
targetFileSizeBase()
The target file size for compaction.
|
int |
targetFileSizeMultiplier()
targetFileSizeMultiplier defines the size ratio between a
level-(L+1) file and level-L file.
|
ColumnFamilyOptions |
useFixedLengthPrefixExtractor(int n)
This prefix-extractor uses the first n bytes of a key as its prefix.
|
boolean |
verifyChecksumsInCompaction()
If true, compaction will verify checksum on every read that happens
as part of compaction
Default: true
|
long |
writeBufferSize()
Return size of write buffer size.
|
disOwnNativeHandle, dispose, finalize, isInitialized, isOwningNativeHandle
public ColumnFamilyOptions()
rocksdb::DBOptions
in the c++ side.public static ColumnFamilyOptions getColumnFamilyOptionsFromProps(java.util.Properties properties)
Method to get a options instance by using pre-configured property values. If one or many values are undefined in the context of RocksDB the method will return a null value.
Note: Property keys can be derived from
getter methods within the options class. Example: the method
writeBufferSize()
has a property key:
write_buffer_size
.
properties
- Properties
instance.instance
or null.java.lang.IllegalArgumentException
- if null or empty
Properties
instance is passed to the method call.public ColumnFamilyOptions optimizeForPointLookup(long blockCacheSizeMb)
ColumnFamilyOptionsInterface
optimizeForPointLookup
in interface ColumnFamilyOptionsInterface
blockCacheSizeMb
- Block cache size in MBpublic ColumnFamilyOptions optimizeLevelStyleCompaction()
ColumnFamilyOptionsInterface
Default values for some parameters in ColumnFamilyOptions are not optimized for heavy workloads and big datasets, which means you might observe write stalls under some conditions. As a starting point for tuning RocksDB options, use the following for level style compaction.
Make sure to also call IncreaseParallelism(), which will provide the biggest performance gains.
Note: we might use more memory than memtable_memory_budget during high write rate period
optimizeLevelStyleCompaction
in interface ColumnFamilyOptionsInterface
public ColumnFamilyOptions optimizeLevelStyleCompaction(long memtableMemoryBudget)
ColumnFamilyOptionsInterface
Default values for some parameters in ColumnFamilyOptions are not optimized for heavy workloads and big datasets, which means you might observe write stalls under some conditions. As a starting point for tuning RocksDB options, use the following for level style compaction.
Make sure to also call IncreaseParallelism(), which will provide the biggest performance gains.
Note: we might use more memory than memtable_memory_budget during high write rate period
optimizeLevelStyleCompaction
in interface ColumnFamilyOptionsInterface
memtableMemoryBudget
- memory budget in bytespublic ColumnFamilyOptions optimizeUniversalStyleCompaction()
ColumnFamilyOptionsInterface
Default values for some parameters in ColumnFamilyOptions are not optimized for heavy workloads and big datasets, which means you might observe write stalls under some conditions. As a starting point for tuning RocksDB options, use the following for universal style compaction.
Universal style compaction is focused on reducing Write Amplification Factor for big data sets, but increases Space Amplification.
Make sure to also call IncreaseParallelism(), which will provide the biggest performance gains.
Note: we might use more memory than memtable_memory_budget during high write rate period
optimizeUniversalStyleCompaction
in interface ColumnFamilyOptionsInterface
public ColumnFamilyOptions optimizeUniversalStyleCompaction(long memtableMemoryBudget)
ColumnFamilyOptionsInterface
Default values for some parameters in ColumnFamilyOptions are not optimized for heavy workloads and big datasets, which means you might observe write stalls under some conditions. As a starting point for tuning RocksDB options, use the following for universal style compaction.
Universal style compaction is focused on reducing Write Amplification Factor for big data sets, but increases Space Amplification.
Make sure to also call IncreaseParallelism(), which will provide the biggest performance gains.
Note: we might use more memory than memtable_memory_budget during high write rate period
optimizeUniversalStyleCompaction
in interface ColumnFamilyOptionsInterface
memtableMemoryBudget
- memory budget in bytespublic ColumnFamilyOptions setComparator(BuiltinComparator builtinComparator)
ColumnFamilyOptionsInterface
BuiltinComparator
to be used with RocksDB.
Note: Comparator can be set once upon database creation.
Default: BytewiseComparator.setComparator
in interface ColumnFamilyOptionsInterface
builtinComparator
- a BuiltinComparator
type.public ColumnFamilyOptions setComparator(AbstractComparator comparator)
ColumnFamilyOptionsInterface
setComparator
in interface ColumnFamilyOptionsInterface
comparator
- java instance.public ColumnFamilyOptions setMergeOperatorName(java.lang.String name)
ColumnFamilyOptionsInterface
Set the merge operator to be used for merging two merge operands of the same key. The merge function is invoked during compaction and at lookup time, if multiple key/value pairs belonging to the same key are found in the database.
setMergeOperatorName
in interface ColumnFamilyOptionsInterface
name
- the name of the merge function, as defined by
the MergeOperators factory (see utilities/MergeOperators.h)
The merge function is specified by name and must be one of the
standard merge operators provided by RocksDB. The available
operators are "put", "uint64add", "stringappend" and "stringappendtest".public ColumnFamilyOptions setMergeOperator(MergeOperator mergeOperator)
ColumnFamilyOptionsInterface
Set the merge operator to be used for merging two different key/value pairs that share the same key. The merge function is invoked during compaction and at lookup time, if multiple key/value pairs belonging to the same key are found in the database.
setMergeOperator
in interface ColumnFamilyOptionsInterface
mergeOperator
- MergeOperator
instance.public ColumnFamilyOptions setWriteBufferSize(long writeBufferSize) throws RocksDBException
ColumnFamilyOptionsInterface
max_write_buffer_number
write buffers may be held in memory
at the same time, so you may wish to adjust this parameter
to control memory usage.
Also, a larger write buffer will result in a longer recovery time
the next time the database is opened.
Default: 4MBsetWriteBufferSize
in interface ColumnFamilyOptionsInterface
writeBufferSize
- the size of write buffer.RocksDBException
- thrown on 32-Bit platforms while
overflowing the underlying platform specific value.public long writeBufferSize()
ColumnFamilyOptionsInterface
writeBufferSize
in interface ColumnFamilyOptionsInterface
ColumnFamilyOptionsInterface.setWriteBufferSize(long)
public ColumnFamilyOptions setMaxWriteBufferNumber(int maxWriteBufferNumber)
ColumnFamilyOptionsInterface
setMaxWriteBufferNumber
in interface ColumnFamilyOptionsInterface
maxWriteBufferNumber
- maximum number of write buffers.public int maxWriteBufferNumber()
ColumnFamilyOptionsInterface
maxWriteBufferNumber
in interface ColumnFamilyOptionsInterface
ColumnFamilyOptionsInterface.setMaxWriteBufferNumber(int)
public ColumnFamilyOptions setMinWriteBufferNumberToMerge(int minWriteBufferNumberToMerge)
ColumnFamilyOptionsInterface
setMinWriteBufferNumberToMerge
in interface ColumnFamilyOptionsInterface
minWriteBufferNumberToMerge
- the minimum number of write buffers
that will be merged together.public int minWriteBufferNumberToMerge()
ColumnFamilyOptionsInterface
minWriteBufferNumberToMerge
in interface ColumnFamilyOptionsInterface
public ColumnFamilyOptions useFixedLengthPrefixExtractor(int n)
ColumnFamilyOptionsInterface
useFixedLengthPrefixExtractor
in interface ColumnFamilyOptionsInterface
n
- use the first n bytes of a key as its prefix.public ColumnFamilyOptions setCompressionType(CompressionType compressionType)
ColumnFamilyOptionsInterface
setCompressionType
in interface ColumnFamilyOptionsInterface
compressionType
- Compression Type.public CompressionType compressionType()
ColumnFamilyOptionsInterface
compressionType
in interface ColumnFamilyOptionsInterface
public ColumnFamilyOptions setNumLevels(int numLevels)
ColumnFamilyOptionsInterface
setNumLevels
in interface ColumnFamilyOptionsInterface
numLevels
- the number of levels.public int numLevels()
ColumnFamilyOptionsInterface
numLevels
in interface ColumnFamilyOptionsInterface
public ColumnFamilyOptions setLevelZeroFileNumCompactionTrigger(int numFiles)
ColumnFamilyOptionsInterface
setLevelZeroFileNumCompactionTrigger
in interface ColumnFamilyOptionsInterface
numFiles
- the number of files in level-0 to trigger compaction.public int levelZeroFileNumCompactionTrigger()
ColumnFamilyOptionsInterface
levelZeroFileNumCompactionTrigger
in interface ColumnFamilyOptionsInterface
public ColumnFamilyOptions setLevelZeroSlowdownWritesTrigger(int numFiles)
ColumnFamilyOptionsInterface
setLevelZeroSlowdownWritesTrigger
in interface ColumnFamilyOptionsInterface
numFiles
- soft limit on number of level-0 files.public int levelZeroSlowdownWritesTrigger()
ColumnFamilyOptionsInterface
levelZeroSlowdownWritesTrigger
in interface ColumnFamilyOptionsInterface
public ColumnFamilyOptions setLevelZeroStopWritesTrigger(int numFiles)
ColumnFamilyOptionsInterface
setLevelZeroStopWritesTrigger
in interface ColumnFamilyOptionsInterface
numFiles
- the hard limit of the number of level-0 files.public int levelZeroStopWritesTrigger()
ColumnFamilyOptionsInterface
levelZeroStopWritesTrigger
in interface ColumnFamilyOptionsInterface
public ColumnFamilyOptions setMaxMemCompactionLevel(int maxMemCompactionLevel)
ColumnFamilyOptionsInterface
setMaxMemCompactionLevel
in interface ColumnFamilyOptionsInterface
maxMemCompactionLevel
- the highest level to which a new compacted
mem-table will be pushed.public int maxMemCompactionLevel()
ColumnFamilyOptionsInterface
maxMemCompactionLevel
in interface ColumnFamilyOptionsInterface
public ColumnFamilyOptions setTargetFileSizeBase(long targetFileSizeBase)
ColumnFamilyOptionsInterface
setTargetFileSizeBase
in interface ColumnFamilyOptionsInterface
targetFileSizeBase
- the target size of a level-0 file.ColumnFamilyOptionsInterface.setTargetFileSizeMultiplier(int)
public long targetFileSizeBase()
ColumnFamilyOptionsInterface
targetFileSizeBase
in interface ColumnFamilyOptionsInterface
ColumnFamilyOptionsInterface.targetFileSizeMultiplier()
public ColumnFamilyOptions setTargetFileSizeMultiplier(int multiplier)
ColumnFamilyOptionsInterface
setTargetFileSizeMultiplier
in interface ColumnFamilyOptionsInterface
multiplier
- the size ratio between a level-(L+1) file
and level-L file.public int targetFileSizeMultiplier()
ColumnFamilyOptionsInterface
targetFileSizeMultiplier
in interface ColumnFamilyOptionsInterface
public ColumnFamilyOptions setMaxBytesForLevelBase(long maxBytesForLevelBase)
ColumnFamilyOptionsInterface
setMaxBytesForLevelBase
in interface ColumnFamilyOptionsInterface
maxBytesForLevelBase
- maximum bytes for level base.ColumnFamilyOptionsInterface.setMaxBytesForLevelMultiplier(int)
public long maxBytesForLevelBase()
ColumnFamilyOptionsInterface
maxBytesForLevelBase
in interface ColumnFamilyOptionsInterface
ColumnFamilyOptionsInterface.maxBytesForLevelMultiplier()
public ColumnFamilyOptions setMaxBytesForLevelMultiplier(int multiplier)
ColumnFamilyOptionsInterface
setMaxBytesForLevelMultiplier
in interface ColumnFamilyOptionsInterface
multiplier
- the ratio between the total size of level-(L+1)
files and the total size of level-L files for all L.ColumnFamilyOptionsInterface.setMaxBytesForLevelBase(long)
public int maxBytesForLevelMultiplier()
ColumnFamilyOptionsInterface
maxBytesForLevelMultiplier
in interface ColumnFamilyOptionsInterface
ColumnFamilyOptionsInterface.maxBytesForLevelBase()
public ColumnFamilyOptions setExpandedCompactionFactor(int expandedCompactionFactor)
ColumnFamilyOptionsInterface
setExpandedCompactionFactor
in interface ColumnFamilyOptionsInterface
expandedCompactionFactor
- the maximum number of bytes in all
compacted files.ColumnFamilyOptionsInterface.setSourceCompactionFactor(int)
public int expandedCompactionFactor()
ColumnFamilyOptionsInterface
expandedCompactionFactor
in interface ColumnFamilyOptionsInterface
ColumnFamilyOptionsInterface.sourceCompactionFactor()
public ColumnFamilyOptions setSourceCompactionFactor(int sourceCompactionFactor)
ColumnFamilyOptionsInterface
setSourceCompactionFactor
in interface ColumnFamilyOptionsInterface
sourceCompactionFactor
- the maximum number of bytes in all
source files to be compacted in a single compaction run.ColumnFamilyOptionsInterface.setExpandedCompactionFactor(int)
public int sourceCompactionFactor()
ColumnFamilyOptionsInterface
sourceCompactionFactor
in interface ColumnFamilyOptionsInterface
ColumnFamilyOptionsInterface.expandedCompactionFactor()
public ColumnFamilyOptions setMaxGrandparentOverlapFactor(int maxGrandparentOverlapFactor)
ColumnFamilyOptionsInterface
setMaxGrandparentOverlapFactor
in interface ColumnFamilyOptionsInterface
maxGrandparentOverlapFactor
- maximum bytes of overlaps in
"grandparent" level.public int maxGrandparentOverlapFactor()
ColumnFamilyOptionsInterface
maxGrandparentOverlapFactor
in interface ColumnFamilyOptionsInterface
public ColumnFamilyOptions setSoftRateLimit(double softRateLimit)
ColumnFamilyOptionsInterface
setSoftRateLimit
in interface ColumnFamilyOptionsInterface
softRateLimit
- the soft-rate-limit of a compaction score
for put delay.public double softRateLimit()
ColumnFamilyOptionsInterface
softRateLimit
in interface ColumnFamilyOptionsInterface
public ColumnFamilyOptions setHardRateLimit(double hardRateLimit)
ColumnFamilyOptionsInterface
setHardRateLimit
in interface ColumnFamilyOptionsInterface
hardRateLimit
- the hard-rate-limit of a compaction score for put
delay.public double hardRateLimit()
ColumnFamilyOptionsInterface
hardRateLimit
in interface ColumnFamilyOptionsInterface
public ColumnFamilyOptions setRateLimitDelayMaxMilliseconds(int rateLimitDelayMaxMilliseconds)
ColumnFamilyOptionsInterface
setRateLimitDelayMaxMilliseconds
in interface ColumnFamilyOptionsInterface
rateLimitDelayMaxMilliseconds
- the maximum time interval a put
will be stalled.public int rateLimitDelayMaxMilliseconds()
ColumnFamilyOptionsInterface
rateLimitDelayMaxMilliseconds
in interface ColumnFamilyOptionsInterface
public ColumnFamilyOptions setArenaBlockSize(long arenaBlockSize) throws RocksDBException
ColumnFamilyOptionsInterface
setArenaBlockSize
in interface ColumnFamilyOptionsInterface
arenaBlockSize
- the size of an arena blockRocksDBException
- thrown on 32-Bit platforms while
overflowing the underlying platform specific value.public long arenaBlockSize()
ColumnFamilyOptionsInterface
arenaBlockSize
in interface ColumnFamilyOptionsInterface
public ColumnFamilyOptions setDisableAutoCompactions(boolean disableAutoCompactions)
ColumnFamilyOptionsInterface
setDisableAutoCompactions
in interface ColumnFamilyOptionsInterface
disableAutoCompactions
- true if auto-compactions are disabled.public boolean disableAutoCompactions()
ColumnFamilyOptionsInterface
disableAutoCompactions
in interface ColumnFamilyOptionsInterface
public ColumnFamilyOptions setPurgeRedundantKvsWhileFlush(boolean purgeRedundantKvsWhileFlush)
ColumnFamilyOptionsInterface
setPurgeRedundantKvsWhileFlush
in interface ColumnFamilyOptionsInterface
purgeRedundantKvsWhileFlush
- true if purging keys is disabled.public boolean purgeRedundantKvsWhileFlush()
ColumnFamilyOptionsInterface
purgeRedundantKvsWhileFlush
in interface ColumnFamilyOptionsInterface
public ColumnFamilyOptions setCompactionStyle(CompactionStyle compactionStyle)
ColumnFamilyOptionsInterface
setCompactionStyle
in interface ColumnFamilyOptionsInterface
compactionStyle
- Compaction style.public CompactionStyle compactionStyle()
ColumnFamilyOptionsInterface
compactionStyle
in interface ColumnFamilyOptionsInterface
public ColumnFamilyOptions setVerifyChecksumsInCompaction(boolean verifyChecksumsInCompaction)
ColumnFamilyOptionsInterface
setVerifyChecksumsInCompaction
in interface ColumnFamilyOptionsInterface
verifyChecksumsInCompaction
- true if compaction verifies
checksum on every read.public boolean verifyChecksumsInCompaction()
ColumnFamilyOptionsInterface
verifyChecksumsInCompaction
in interface ColumnFamilyOptionsInterface
public ColumnFamilyOptions setFilterDeletes(boolean filterDeletes)
ColumnFamilyOptionsInterface
setFilterDeletes
in interface ColumnFamilyOptionsInterface
filterDeletes
- true if filter-deletes behavior is on.public boolean filterDeletes()
ColumnFamilyOptionsInterface
filterDeletes
in interface ColumnFamilyOptionsInterface
public ColumnFamilyOptions setMaxSequentialSkipInIterations(long maxSequentialSkipInIterations)
ColumnFamilyOptionsInterface
setMaxSequentialSkipInIterations
in interface ColumnFamilyOptionsInterface
maxSequentialSkipInIterations
- the number of keys could
be skipped in a iteration.public long maxSequentialSkipInIterations()
ColumnFamilyOptionsInterface
maxSequentialSkipInIterations
in interface ColumnFamilyOptionsInterface
public ColumnFamilyOptions setMemTableConfig(MemTableConfig config) throws RocksDBException
ColumnFamilyOptionsInterface
setMemTableConfig
in interface ColumnFamilyOptionsInterface
config
- the mem-table config.RocksDBException
- thrown on 32-Bit platforms while
overflowing the underlying platform specific value.public java.lang.String memTableFactoryName()
ColumnFamilyOptionsInterface
memTableFactoryName
in interface ColumnFamilyOptionsInterface
ColumnFamilyOptionsInterface.setTableFormatConfig(org.rocksdb.TableFormatConfig)
public ColumnFamilyOptions setTableFormatConfig(TableFormatConfig config)
ColumnFamilyOptionsInterface
setTableFormatConfig
in interface ColumnFamilyOptionsInterface
config
- the table format config.public java.lang.String tableFactoryName()
tableFactoryName
in interface ColumnFamilyOptionsInterface
public ColumnFamilyOptions setInplaceUpdateSupport(boolean inplaceUpdateSupport)
ColumnFamilyOptionsInterface
setInplaceUpdateSupport
in interface ColumnFamilyOptionsInterface
inplaceUpdateSupport
- true if thread-safe inplace updates
are allowed.public boolean inplaceUpdateSupport()
ColumnFamilyOptionsInterface
inplaceUpdateSupport
in interface ColumnFamilyOptionsInterface
public ColumnFamilyOptions setInplaceUpdateNumLocks(long inplaceUpdateNumLocks) throws RocksDBException
ColumnFamilyOptionsInterface
setInplaceUpdateNumLocks
in interface ColumnFamilyOptionsInterface
inplaceUpdateNumLocks
- the number of locks used for
inplace updates.RocksDBException
- thrown on 32-Bit platforms while
overflowing the underlying platform specific value.public long inplaceUpdateNumLocks()
ColumnFamilyOptionsInterface
inplaceUpdateNumLocks
in interface ColumnFamilyOptionsInterface
public ColumnFamilyOptions setMemtablePrefixBloomBits(int memtablePrefixBloomBits)
ColumnFamilyOptionsInterface
setMemtablePrefixBloomBits
in interface ColumnFamilyOptionsInterface
memtablePrefixBloomBits
- the number of bits used in the
prefix bloom filter.public int memtablePrefixBloomBits()
ColumnFamilyOptionsInterface
memtablePrefixBloomBits
in interface ColumnFamilyOptionsInterface
ColumnFamilyOptionsInterface.useFixedLengthPrefixExtractor(int)
public ColumnFamilyOptions setMemtablePrefixBloomProbes(int memtablePrefixBloomProbes)
ColumnFamilyOptionsInterface
setMemtablePrefixBloomProbes
in interface ColumnFamilyOptionsInterface
memtablePrefixBloomProbes
- the number of hash probes per key.public int memtablePrefixBloomProbes()
ColumnFamilyOptionsInterface
memtablePrefixBloomProbes
in interface ColumnFamilyOptionsInterface
public ColumnFamilyOptions setBloomLocality(int bloomLocality)
ColumnFamilyOptionsInterface
setBloomLocality
in interface ColumnFamilyOptionsInterface
bloomLocality
- the level of locality of bloom-filter probes.public int bloomLocality()
ColumnFamilyOptionsInterface
bloomLocality
in interface ColumnFamilyOptionsInterface
ColumnFamilyOptionsInterface.setMemtablePrefixBloomProbes(int)
public ColumnFamilyOptions setMaxSuccessiveMerges(long maxSuccessiveMerges) throws RocksDBException
ColumnFamilyOptionsInterface
setMaxSuccessiveMerges
in interface ColumnFamilyOptionsInterface
maxSuccessiveMerges
- the maximum number of successive merges.RocksDBException
- thrown on 32-Bit platforms while
overflowing the underlying platform specific value.public long maxSuccessiveMerges()
ColumnFamilyOptionsInterface
maxSuccessiveMerges
in interface ColumnFamilyOptionsInterface
public ColumnFamilyOptions setMinPartialMergeOperands(int minPartialMergeOperands)
ColumnFamilyOptionsInterface
setMinPartialMergeOperands
in interface ColumnFamilyOptionsInterface
minPartialMergeOperands
- min partial merge operandspublic int minPartialMergeOperands()
ColumnFamilyOptionsInterface
minPartialMergeOperands
in interface ColumnFamilyOptionsInterface
protected void disposeInternal()
disposeInternal
in class RocksObject