public class CompactRangeOptions extends RocksObject
Modifier and Type | Class and Description |
---|---|
static class |
CompactRangeOptions.BottommostLevelCompaction |
nativeHandle_
Constructor and Description |
---|
CompactRangeOptions()
Construct CompactRangeOptions.
|
Modifier and Type | Method and Description |
---|---|
boolean |
allowWriteStall()
If true, compaction will execute immediately even if doing so would cause the DB to
enter write stall mode.
|
CompactRangeOptions.BottommostLevelCompaction |
bottommostLevelCompaction()
Returns the policy for compacting the bottommost level
|
boolean |
changeLevel()
Returns whether compacted files will be moved to the minimum level capable of holding the data or given level
(specified non-negative target_level).
|
protected void |
disposeInternal(long handle) |
boolean |
exclusiveManualCompaction()
Returns whether the compaction is exclusive or other compactions may run concurrently at the same time.
|
int |
maxSubcompactions()
If > 0, it will replace the option in the DBOptions for this compaction
|
CompactRangeOptions |
setAllowWriteStall(boolean allowWriteStall)
If true, compaction will execute immediately even if doing so would cause the DB to
enter write stall mode.
|
CompactRangeOptions |
setBottommostLevelCompaction(CompactRangeOptions.BottommostLevelCompaction bottommostLevelCompaction)
Sets the policy for compacting the bottommost level
|
CompactRangeOptions |
setChangeLevel(boolean changeLevel)
Whether compacted files will be moved to the minimum level capable of holding the data or given level
(specified non-negative target_level).
|
CompactRangeOptions |
setExclusiveManualCompaction(boolean exclusiveCompaction)
Sets whether the compaction is exclusive or other compaction are allowed run concurrently at the same time.
|
CompactRangeOptions |
setMaxSubcompactions(int maxSubcompactions)
If > 0, it will replace the option in the DBOptions for this compaction
|
CompactRangeOptions |
setTargetLevel(int targetLevel)
If change_level is true and target_level have non-negative value, compacted files will be moved to target_level.
|
CompactRangeOptions |
setTargetPathId(int targetPathId)
Compaction outputs will be placed in options.db_paths[target_path_id].
|
int |
targetLevel()
If change_level is true and target_level have non-negative value, compacted files will be moved to target_level.
|
int |
targetPathId()
target_path_id for compaction output.
|
disposeInternal
close, disOwnNativeHandle, isOwningHandle
dispose, finalize
public boolean exclusiveManualCompaction()
public CompactRangeOptions setExclusiveManualCompaction(boolean exclusiveCompaction)
exclusiveCompaction
- true if compaction should be exclusivepublic CompactRangeOptions.BottommostLevelCompaction bottommostLevelCompaction()
public CompactRangeOptions setBottommostLevelCompaction(CompactRangeOptions.BottommostLevelCompaction bottommostLevelCompaction)
bottommostLevelCompaction
- The policy for compacting the bottommost levelpublic boolean changeLevel()
public CompactRangeOptions setChangeLevel(boolean changeLevel)
changeLevel
- If true, compacted files will be moved to the minimum levelpublic int targetLevel()
public CompactRangeOptions setTargetLevel(int targetLevel)
targetLevel
- target level for the compacted filespublic int targetPathId()
public CompactRangeOptions setTargetPathId(int targetPathId)
targetPathId
- target path idpublic boolean allowWriteStall()
public CompactRangeOptions setAllowWriteStall(boolean allowWriteStall)
allowWriteStall
- true if compaction should execute immediatelypublic int maxSubcompactions()
public CompactRangeOptions setMaxSubcompactions(int maxSubcompactions)
maxSubcompactions
- number of subcompactionsprotected final void disposeInternal(long handle)
disposeInternal
in class RocksObject