Package org.rocksdb
Enum Class CompactRangeOptions.BottommostLevelCompaction
java.lang.Object
java.lang.Enum<CompactRangeOptions.BottommostLevelCompaction>
org.rocksdb.CompactRangeOptions.BottommostLevelCompaction
- All Implemented Interfaces:
Serializable,Comparable<CompactRangeOptions.BottommostLevelCompaction>,Constable
- Enclosing class:
CompactRangeOptions
public static enum CompactRangeOptions.BottommostLevelCompaction
extends Enum<CompactRangeOptions.BottommostLevelCompaction>
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionAlways compact bottommost levelAlways compact bottommost level but in bottommost level avoid double-compacting files created in the same compactionOnly compact bottommost level if there is a compaction filter.Skip bottommost level compaction -
Method Summary
Modifier and TypeMethodDescriptionfromRocksId(int bottommostLevelCompaction) Returns the BottommostLevelCompaction for the given C++ rocks enum value.bytegetValue()Returns the byte value of the enumerations value.Returns the enum constant of this class with the specified name.values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
kSkip
Skip bottommost level compaction -
kIfHaveCompactionFilter
Only compact bottommost level if there is a compaction filter. This is the default option -
kForce
Always compact bottommost level -
kForceOptimized
Always compact bottommost level but in bottommost level avoid double-compacting files created in the same compaction
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
getValue
public byte getValue()Returns the byte value of the enumerations value.
- Returns:
- byte representation
-
fromRocksId
public static CompactRangeOptions.BottommostLevelCompaction fromRocksId(int bottommostLevelCompaction) Returns the BottommostLevelCompaction for the given C++ rocks enum value.- Parameters:
bottommostLevelCompaction- The value of the BottommostLevelCompaction- Returns:
- BottommostLevelCompaction instance, or null if none matches
-