public class CompactionOptionsFIFO extends RocksObject
nativeHandle_| 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
Default: 1GB
|
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
Default: 1GB
|
CompactionOptionsFIFO |
setTtl(long ttl)
Drop files older than TTL.
|
long |
ttl()
The current ttl value.
|
disposeInternalclose, disOwnNativeHandle, isOwningHandledispose, finalizepublic CompactionOptionsFIFO setMaxTableFilesSize(long maxTableFilesSize)
maxTableFilesSize - The maximum size of the table filespublic long maxTableFilesSize()
public CompactionOptionsFIFO setTtl(long ttl)
ttl - The ttl for the table files in secondspublic long ttl()
public CompactionOptionsFIFO setAllowCompaction(boolean allowCompaction)
allowCompaction - should allow intra-L0 compaction?public boolean allowCompaction()
protected final void disposeInternal(long handle)
disposeInternal in class RocksObject