public class CompactionOptionsFIFO extends RocksObject
nativeHandle_
owningHandle_
Constructor and Description |
---|
CompactionOptionsFIFO() |
Modifier and Type | Method and Description |
---|---|
boolean |
allowCompaction()
Check if intra-L0 compaction is enabled.
|
protected void |
disposeInternal(long handle) |
long |
maxTableFilesSize()
Once the total sum of table files reaches this, we will delete the oldest
table file
|
CompactionOptionsFIFO |
setAllowCompaction(boolean allowCompaction)
If true, try to do compaction to compact smaller files into larger ones.
|
CompactionOptionsFIFO |
setMaxTableFilesSize(long maxTableFilesSize)
Once the total sum of table files reaches this, we will delete the oldest
table file
|
disposeInternal, getNativeHandle
close, disOwnNativeHandle, isOwningHandle
public CompactionOptionsFIFO setMaxTableFilesSize(long maxTableFilesSize)
Default: 1GB
maxTableFilesSize
- The maximum size of the table filespublic long maxTableFilesSize()
Default: 1GB
public CompactionOptionsFIFO setAllowCompaction(boolean allowCompaction)
Default: false
allowCompaction
- true to allow intra-L0 compactionpublic boolean allowCompaction()
See setAllowCompaction(boolean)
.
Default: false
protected final void disposeInternal(long handle)
disposeInternal
in class RocksObject