Enum SortedLogState

  • All Implemented Interfaces:
    Serializable, Comparable<SortedLogState>

    public enum SortedLogState
    extends Enum<SortedLogState>
    A file is written in the destination directory for the sorting of write-ahead logs that need recovering. The value of getMarker() is the name of the file that will exist in the sorted output directory.
    • Method Detail

      • values

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

        public static SortedLogState valueOf​(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:
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null
      • getMarker

        public String getMarker()
      • isFinished

        public static boolean isFinished​(String fileName)
      • getFinishedMarkerPath

        public static org.apache.hadoop.fs.Path getFinishedMarkerPath​(String rootPath)
      • getFinishedMarkerPath

        public static org.apache.hadoop.fs.Path getFinishedMarkerPath​(org.apache.hadoop.fs.Path rootPath)
      • getFailedMarkerPath

        public static org.apache.hadoop.fs.Path getFailedMarkerPath​(String rootPath)