Package org.rocksdb
Enum Class CompactionStyle
- All Implemented Interfaces:
Serializable,Comparable<CompactionStyle>,Constable
Enum CompactionStyle
RocksDB supports different styles of compaction. Available compaction styles can be chosen using this enumeration.
- LEVEL - Level based Compaction style
- UNIVERSAL - Universal Compaction Style is a compaction style, targeting the use cases requiring lower write amplification, trading off read amplification and space amplification.
- FIFO - FIFO compaction style is the simplest compaction strategy. It is suited for keeping event log data with very low overhead (query log for example). It periodically deletes the old data, so it's basically a TTL compaction style.
- NONE - Disable background compaction.
Compaction jobs are submitted
RocksDB.compactFiles(CompactionOptions, ColumnFamilyHandle, java.util.List, int, int, CompactionJobInfo)()}.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionbytegetValue()Get the internal representation value.static CompactionStyleReturns the enum constant of this class with the specified name.static CompactionStyle[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
LEVEL
-
UNIVERSAL
-
FIFO
-
NONE
-
-
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()Get the internal representation value.- Returns:
- the internal representation value.
-