public interface MutableColumnFamilyOptionsInterface
Modifier and Type | Method and Description |
---|---|
long |
arenaBlockSize()
The size of one block in arena memory allocation.
|
boolean |
disableAutoCompactions()
Disable automatic compactions.
|
long |
hardPendingCompactionBytesLimit()
All writes are stopped if estimated bytes needed to be compaction exceed
this threshold.
|
double |
hardRateLimit()
Deprecated.
Instead use
hardPendingCompactionBytesLimit() |
long |
inplaceUpdateNumLocks()
Number of locks used for inplace update
Default: 10000, if inplace_update_support = true, else 0.
|
int |
level0FileNumCompactionTrigger()
Number of files to trigger level-0 compaction.
|
int |
level0SlowdownWritesTrigger()
Soft limit on number of level-0 files.
|
int |
level0StopWritesTrigger()
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[] |
maxBytesForLevelMultiplierAdditional()
Different max-size multipliers for different levels.
|
long |
maxCompactionBytes()
We try to limit number of bytes in one compaction to be lower than this
threshold.
|
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.
|
long |
memtableHugePageSize()
Page size for huge page TLB for bloom in memtable.
|
double |
memtablePrefixBloomSizeRatio()
if prefix_extractor is set and memtable_prefix_bloom_size_ratio is not 0,
create prefix bloom for memtable with the size of
write_buffer_size * memtable_prefix_bloom_size_ratio.
|
boolean |
paranoidFileChecks()
After writing every SST file, reopen it and read all the keys.
|
MutableColumnFamilyOptionsInterface |
setArenaBlockSize(long arenaBlockSize)
The size of one block in arena memory allocation.
|
MutableColumnFamilyOptionsInterface |
setDisableAutoCompactions(boolean disableAutoCompactions)
Disable automatic compactions.
|
MutableColumnFamilyOptionsInterface |
setHardPendingCompactionBytesLimit(long hardPendingCompactionBytesLimit)
All writes are stopped if estimated bytes needed to be compaction exceed
this threshold.
|
MutableColumnFamilyOptionsInterface |
setHardRateLimit(double hardRateLimit)
Deprecated.
Instead use
setHardPendingCompactionBytesLimit(long) |
MutableColumnFamilyOptionsInterface |
setInplaceUpdateNumLocks(long inplaceUpdateNumLocks)
Number of locks used for inplace update
Default: 10000, if inplace_update_support = true, else 0.
|
MutableColumnFamilyOptionsInterface |
setLevel0FileNumCompactionTrigger(int level0FileNumCompactionTrigger)
Number of files to trigger level-0 compaction.
|
MutableColumnFamilyOptionsInterface |
setLevel0SlowdownWritesTrigger(int level0SlowdownWritesTrigger)
Soft limit on number of level-0 files.
|
MutableColumnFamilyOptionsInterface |
setLevel0StopWritesTrigger(int level0StopWritesTrigger)
Maximum number of level-0 files.
|
MutableColumnFamilyOptionsInterface |
setMaxBytesForLevelBase(long maxBytesForLevelBase)
The upper-bound of the total size of level-1 files in bytes.
|
MutableColumnFamilyOptionsInterface |
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.
|
MutableColumnFamilyOptionsInterface |
setMaxBytesForLevelMultiplierAdditional(int[] maxBytesForLevelMultiplierAdditional)
Different max-size multipliers for different levels.
|
MutableColumnFamilyOptionsInterface |
setMaxCompactionBytes(long maxCompactionBytes)
We try to limit number of bytes in one compaction to be lower than this
threshold.
|
MutableColumnFamilyOptionsInterface |
setMaxSequentialSkipInIterations(long maxSequentialSkipInIterations)
An iteration->Next() sequentially skips over keys with the same
user-key unless this option is set.
|
MutableColumnFamilyOptionsInterface |
setMaxSuccessiveMerges(long maxSuccessiveMerges)
Maximum number of successive merge operations on a key in the memtable.
|
MutableColumnFamilyOptionsInterface |
setMaxWriteBufferNumber(int maxWriteBufferNumber)
The maximum number of write buffers that are built up in memory.
|
MutableColumnFamilyOptionsInterface |
setMemtableHugePageSize(long memtableHugePageSize)
Page size for huge page TLB for bloom in memtable.
|
MutableColumnFamilyOptionsInterface |
setMemtablePrefixBloomSizeRatio(double memtablePrefixBloomSizeRatio)
if prefix_extractor is set and memtable_prefix_bloom_size_ratio is not 0,
create prefix bloom for memtable with the size of
write_buffer_size * memtable_prefix_bloom_size_ratio.
|
MutableColumnFamilyOptionsInterface |
setParanoidFileChecks(boolean paranoidFileChecks)
After writing every SST file, reopen it and read all the keys.
|
MutableColumnFamilyOptionsInterface |
setSoftPendingCompactionBytesLimit(long softPendingCompactionBytesLimit)
All writes will be slowed down to at least delayed_write_rate if estimated
bytes needed to be compaction exceed this threshold.
|
MutableColumnFamilyOptionsInterface |
setSoftRateLimit(double softRateLimit)
Deprecated.
Instead use
setSoftPendingCompactionBytesLimit(long) |
MutableColumnFamilyOptionsInterface |
setTargetFileSizeBase(long targetFileSizeBase)
The target file size for compaction.
|
MutableColumnFamilyOptionsInterface |
setTargetFileSizeMultiplier(int multiplier)
targetFileSizeMultiplier defines the size ratio between a
level-L file and level-(L+1) file.
|
MutableColumnFamilyOptionsInterface |
setVerifyChecksumsInCompaction(boolean verifyChecksumsInCompaction)
If true, compaction will verify checksum on every read that happens
as part of compaction
Default: true
|
MutableColumnFamilyOptionsInterface |
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.
|
long |
softPendingCompactionBytesLimit()
All writes will be slowed down to at least delayed_write_rate if estimated
bytes needed to be compaction exceed this threshold.
|
double |
softRateLimit()
Deprecated.
Instead use
softPendingCompactionBytesLimit() |
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.
|
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.
|
MutableColumnFamilyOptionsInterface setWriteBufferSize(long writeBufferSize)
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: 4MBwriteBufferSize
- the size of write buffer.java.lang.IllegalArgumentException
- thrown on 32-Bit platforms
while overflowing the underlying platform specific value.long writeBufferSize()
setWriteBufferSize(long)
MutableColumnFamilyOptionsInterface setArenaBlockSize(long arenaBlockSize)
arenaBlockSize
- the size of an arena blockjava.lang.IllegalArgumentException
- thrown on 32-Bit platforms
while overflowing the underlying platform specific value.long arenaBlockSize()
MutableColumnFamilyOptionsInterface setMemtablePrefixBloomSizeRatio(double memtablePrefixBloomSizeRatio)
memtablePrefixBloomSizeRatio
- The ratiodouble memtablePrefixBloomSizeRatio()
MutableColumnFamilyOptionsInterface setMemtableHugePageSize(long memtableHugePageSize)
memtableHugePageSize
- The page size of the huge
page tlblong memtableHugePageSize()
MutableColumnFamilyOptionsInterface setMaxSuccessiveMerges(long maxSuccessiveMerges)
maxSuccessiveMerges
- the maximum number of successive merges.java.lang.IllegalArgumentException
- thrown on 32-Bit platforms
while overflowing the underlying platform specific value.long maxSuccessiveMerges()
MutableColumnFamilyOptionsInterface setMaxWriteBufferNumber(int maxWriteBufferNumber)
maxWriteBufferNumber
- maximum number of write buffers.int maxWriteBufferNumber()
setMaxWriteBufferNumber(int)
MutableColumnFamilyOptionsInterface setInplaceUpdateNumLocks(long inplaceUpdateNumLocks)
inplaceUpdateNumLocks
- the number of locks used for
inplace updates.java.lang.IllegalArgumentException
- thrown on 32-Bit platforms
while overflowing the underlying platform specific value.long inplaceUpdateNumLocks()
MutableColumnFamilyOptionsInterface setDisableAutoCompactions(boolean disableAutoCompactions)
disableAutoCompactions
- true if auto-compactions are disabled.boolean disableAutoCompactions()
@Deprecated MutableColumnFamilyOptionsInterface setSoftRateLimit(double softRateLimit)
setSoftPendingCompactionBytesLimit(long)
softRateLimit
- the soft-rate-limit of a compaction score
for put delay.@Deprecated double softRateLimit()
softPendingCompactionBytesLimit()
MutableColumnFamilyOptionsInterface setSoftPendingCompactionBytesLimit(long softPendingCompactionBytesLimit)
softPendingCompactionBytesLimit
- The soft limit to impose on
compactionlong softPendingCompactionBytesLimit()
@Deprecated MutableColumnFamilyOptionsInterface setHardRateLimit(double hardRateLimit)
setHardPendingCompactionBytesLimit(long)
hardRateLimit
- the hard-rate-limit of a compaction score for put
delay.@Deprecated double hardRateLimit()
hardPendingCompactionBytesLimit()
MutableColumnFamilyOptionsInterface setHardPendingCompactionBytesLimit(long hardPendingCompactionBytesLimit)
hardPendingCompactionBytesLimit
- The hard limit to impose on
compactionlong hardPendingCompactionBytesLimit()
MutableColumnFamilyOptionsInterface setLevel0FileNumCompactionTrigger(int level0FileNumCompactionTrigger)
level0FileNumCompactionTrigger
- The number of files to trigger
level-0 compactionint level0FileNumCompactionTrigger()
MutableColumnFamilyOptionsInterface setLevel0SlowdownWritesTrigger(int level0SlowdownWritesTrigger)
level0SlowdownWritesTrigger
- The soft limit on the number of
level-0 filesint level0SlowdownWritesTrigger()
MutableColumnFamilyOptionsInterface setLevel0StopWritesTrigger(int level0StopWritesTrigger)
level0StopWritesTrigger
- The maximum number of level-0 filesint level0StopWritesTrigger()
MutableColumnFamilyOptionsInterface setMaxCompactionBytes(long maxCompactionBytes)
maxCompactionBytes
- max bytes in a compactionmaxCompactionBytes()
long maxCompactionBytes()
setMaxCompactionBytes(long)
MutableColumnFamilyOptionsInterface setTargetFileSizeBase(long targetFileSizeBase)
targetFileSizeBase
- the target size of a level-0 file.setTargetFileSizeMultiplier(int)
long targetFileSizeBase()
targetFileSizeMultiplier()
MutableColumnFamilyOptionsInterface setTargetFileSizeMultiplier(int multiplier)
multiplier
- the size ratio between a level-(L+1) file
and level-L file.int targetFileSizeMultiplier()
MutableColumnFamilyOptionsInterface setMaxBytesForLevelBase(long maxBytesForLevelBase)
maxBytesForLevelBase
- maximum bytes for level base.setMaxBytesForLevelMultiplier(int)
long maxBytesForLevelBase()
maxBytesForLevelMultiplier()
MutableColumnFamilyOptionsInterface setMaxBytesForLevelMultiplier(int multiplier)
multiplier
- the ratio between the total size of level-(L+1)
files and the total size of level-L files for all L.setMaxBytesForLevelBase(long)
int maxBytesForLevelMultiplier()
maxBytesForLevelBase()
MutableColumnFamilyOptionsInterface setMaxBytesForLevelMultiplierAdditional(int[] maxBytesForLevelMultiplierAdditional)
maxBytesForLevelMultiplierAdditional
- The max-size multipliers
for each levelint[] maxBytesForLevelMultiplierAdditional()
MutableColumnFamilyOptionsInterface setVerifyChecksumsInCompaction(boolean verifyChecksumsInCompaction)
verifyChecksumsInCompaction
- true if compaction verifies
checksum on every read.boolean verifyChecksumsInCompaction()
MutableColumnFamilyOptionsInterface setMaxSequentialSkipInIterations(long maxSequentialSkipInIterations)
maxSequentialSkipInIterations
- the number of keys could
be skipped in a iteration.long maxSequentialSkipInIterations()
MutableColumnFamilyOptionsInterface setParanoidFileChecks(boolean paranoidFileChecks)
paranoidFileChecks
- true to enable paranoid file checksboolean paranoidFileChecks()