public interface MutableColumnFamilyOptionsInterface<T extends MutableColumnFamilyOptionsInterface<T>> extends AdvancedMutableColumnFamilyOptionsInterface<T>
| Modifier and Type | Method and Description |
|---|---|
CompressionType |
compressionType()
Compress blocks using the specified compression algorithm.
|
boolean |
disableAutoCompactions()
Disable automatic compactions.
|
int |
level0FileNumCompactionTrigger()
Number of files to trigger level-0 compaction.
|
long |
maxBytesForLevelBase()
The upper-bound of the total size of level-1 files in bytes.
|
long |
maxCompactionBytes()
We try to limit number of bytes in one compaction to be lower than this
threshold.
|
T |
setCompressionType(CompressionType compressionType)
Compress blocks using the specified compression algorithm.
|
MutableColumnFamilyOptionsInterface<T> |
setDisableAutoCompactions(boolean disableAutoCompactions)
Disable automatic compactions.
|
MutableColumnFamilyOptionsInterface<T> |
setLevel0FileNumCompactionTrigger(int level0FileNumCompactionTrigger)
Number of files to trigger level-0 compaction.
|
T |
setMaxBytesForLevelBase(long maxBytesForLevelBase)
The upper-bound of the total size of level-1 files in bytes.
|
MutableColumnFamilyOptionsInterface<T> |
setMaxCompactionBytes(long maxCompactionBytes)
We try to limit number of bytes in one compaction to be lower than this
threshold.
|
MutableColumnFamilyOptionsInterface<T> |
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 |
writeBufferSize()
Return size of write buffer size.
|
arenaBlockSize, hardPendingCompactionBytesLimit, inplaceUpdateNumLocks, level0SlowdownWritesTrigger, level0StopWritesTrigger, maxBytesForLevelMultiplier, maxBytesForLevelMultiplierAdditional, maxSequentialSkipInIterations, maxSuccessiveMerges, maxWriteBufferNumber, memtableHugePageSize, memtablePrefixBloomSizeRatio, paranoidFileChecks, reportBgIoStats, setArenaBlockSize, setHardPendingCompactionBytesLimit, setInplaceUpdateNumLocks, setLevel0SlowdownWritesTrigger, setLevel0StopWritesTrigger, setMaxBytesForLevelMultiplier, setMaxBytesForLevelMultiplierAdditional, setMaxSequentialSkipInIterations, setMaxSuccessiveMerges, setMaxWriteBufferNumber, setMemtableHugePageSize, setMemtablePrefixBloomSizeRatio, setParanoidFileChecks, setReportBgIoStats, setSoftPendingCompactionBytesLimit, setTargetFileSizeBase, setTargetFileSizeMultiplier, setTtl, softPendingCompactionBytesLimit, targetFileSizeBase, targetFileSizeMultiplier, ttlMutableColumnFamilyOptionsInterface<T> 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: 64MBwriteBufferSize - the size of write buffer.IllegalArgumentException - thrown on 32-Bit platforms
while overflowing the underlying platform specific value.long writeBufferSize()
setWriteBufferSize(long)MutableColumnFamilyOptionsInterface<T> setDisableAutoCompactions(boolean disableAutoCompactions)
disableAutoCompactions - true if auto-compactions are disabled.boolean disableAutoCompactions()
MutableColumnFamilyOptionsInterface<T> setLevel0FileNumCompactionTrigger(int level0FileNumCompactionTrigger)
level0FileNumCompactionTrigger - The number of files to trigger
level-0 compactionint level0FileNumCompactionTrigger()
MutableColumnFamilyOptionsInterface<T> setMaxCompactionBytes(long maxCompactionBytes)
maxCompactionBytes - max bytes in a compactionmaxCompactionBytes()long maxCompactionBytes()
setMaxCompactionBytes(long)T setMaxBytesForLevelBase(long maxBytesForLevelBase)
maxBytesForLevelBase - maximum bytes for level base.AdvancedMutableColumnFamilyOptionsInterface.setMaxBytesForLevelMultiplier(double)long maxBytesForLevelBase()
AdvancedMutableColumnFamilyOptionsInterface.maxBytesForLevelMultiplier()T setCompressionType(CompressionType compressionType)
compressionType - Compression Type.CompressionType compressionType()
Copyright © 2021. All rights reserved.