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 |
setDisableAutoCompactions(boolean disableAutoCompactions)
Disable automatic compactions.
|
MutableColumnFamilyOptionsInterface |
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 |
setMaxCompactionBytes(long maxCompactionBytes)
We try to limit number of bytes in one compaction to be lower than this
threshold.
|
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 |
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, ttl
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: 64MBwriteBufferSize
- 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 setDisableAutoCompactions(boolean disableAutoCompactions)
disableAutoCompactions
- true if auto-compactions are disabled.boolean disableAutoCompactions()
MutableColumnFamilyOptionsInterface setLevel0FileNumCompactionTrigger(int level0FileNumCompactionTrigger)
level0FileNumCompactionTrigger
- The number of files to trigger
level-0 compactionint level0FileNumCompactionTrigger()
MutableColumnFamilyOptionsInterface 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()