Enum RewriteJobOrder

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

    public enum RewriteJobOrder
    extends java.lang.Enum<RewriteJobOrder>
    Enum of supported rewrite job order, it defines the order in which the file groups should be written.

    • bytes-asc: rewrite the smallest job groups first.
    • bytes-desc: rewrite the largest job groups first.
    • files-asc: rewrite the job groups with the least files first.
    • files-desc: rewrite the job groups with the most files first.
    • none: rewrite job groups in the order they were planned (no specific ordering).

    • Method Detail

      • values

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

        public static RewriteJobOrder 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
      • orderName

        public java.lang.String orderName()
      • fromName

        public static RewriteJobOrder fromName​(java.lang.String orderName)