Package org.rocksdb
Enum CompactRangeOptions.BottommostLevelCompaction
- java.lang.Object
-
- java.lang.Enum<CompactRangeOptions.BottommostLevelCompaction>
-
- org.rocksdb.CompactRangeOptions.BottommostLevelCompaction
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<CompactRangeOptions.BottommostLevelCompaction>
- Enclosing class:
- CompactRangeOptions
public static enum CompactRangeOptions.BottommostLevelCompaction extends java.lang.Enum<CompactRangeOptions.BottommostLevelCompaction>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description kForceAlways compact bottommost levelkIfHaveCompactionFilterOnly compact bottommost level if there is a compaction filter.kSkipSkip bottommost level compaction
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static CompactRangeOptions.BottommostLevelCompactionfromRocksId(int bottommostLevelCompaction)Returns the BottommostLevelCompaction for the given C++ rocks enum value.bytegetValue()Returns the byte value of the enumerations value.static CompactRangeOptions.BottommostLevelCompactionvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static CompactRangeOptions.BottommostLevelCompaction[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
kSkip
public static final CompactRangeOptions.BottommostLevelCompaction kSkip
Skip bottommost level compaction
-
kIfHaveCompactionFilter
public static final CompactRangeOptions.BottommostLevelCompaction kIfHaveCompactionFilter
Only compact bottommost level if there is a compaction filter. This is the default option
-
kForce
public static final CompactRangeOptions.BottommostLevelCompaction kForce
Always compact bottommost level
-
-
Method Detail
-
values
public static CompactRangeOptions.BottommostLevelCompaction[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (CompactRangeOptions.BottommostLevelCompaction c : CompactRangeOptions.BottommostLevelCompaction.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CompactRangeOptions.BottommostLevelCompaction valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- 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
-
-