Package org.rocksdb

Enum CompactionStopStyle

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<CompactionStopStyle>

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

      • 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 Detail

      • values

        public static CompactionStopStyle[] 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 (CompactionStopStyle c : CompactionStopStyle.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static CompactionStopStyle 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 name
        java.lang.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:
        java.lang.IllegalArgumentException - if an invalid value is provided.