Package org.rocksdb

Enum Class CompactionStopStyle

java.lang.Object
java.lang.Enum<CompactionStopStyle>
org.rocksdb.CompactionStopStyle
All Implemented Interfaces:
Serializable, Comparable<CompactionStopStyle>, Constable

public enum CompactionStopStyle extends Enum<CompactionStopStyle>
Algorithm used to make a compaction request stop picking new files into a single compaction run
  • Enum Constant Details

    • CompactionStopStyleSimilarSize

      public static final CompactionStopStyle CompactionStopStyleSimilarSize
      Pick files of similar size
    • CompactionStopStyleTotalSize

      public static final CompactionStopStyle CompactionStopStyleTotalSize
      Total size of picked files > next file
  • Method Details

    • values

      public static CompactionStopStyle[] 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

      public static CompactionStopStyle valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • getValue

      public byte getValue()
      Returns the byte value of the enumerations value
      Returns:
      byte representation
    • getCompactionStopStyle

      public static CompactionStopStyle getCompactionStopStyle(byte value)
      Get CompactionStopStyle by byte value.
      Parameters:
      value - byte representation of CompactionStopStyle.
      Returns:
      CompactionStopStyle instance or null.
      Throws:
      IllegalArgumentException - if an invalid value is provided.