public enum SortedLogState extends Enum<SortedLogState>
getMarker()
is the name of the
file that will exist in the sorted output directory.Modifier and Type | Method and Description |
---|---|
static org.apache.hadoop.fs.Path |
getFailedMarkerPath(String rootPath) |
static org.apache.hadoop.fs.Path |
getFinishedMarkerPath(org.apache.hadoop.fs.Path rootPath) |
static org.apache.hadoop.fs.Path |
getFinishedMarkerPath(String rootPath) |
String |
getMarker() |
static boolean |
isFinished(String fileName) |
String |
toString() |
static SortedLogState |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SortedLogState[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SortedLogState FINISHED
public static final SortedLogState FAILED
public static SortedLogState[] values()
for (SortedLogState c : SortedLogState.values()) System.out.println(c);
public static SortedLogState valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic String getMarker()
public static boolean isFinished(String fileName)
public static org.apache.hadoop.fs.Path getFinishedMarkerPath(String rootPath)
public static org.apache.hadoop.fs.Path getFinishedMarkerPath(org.apache.hadoop.fs.Path rootPath)
public static org.apache.hadoop.fs.Path getFailedMarkerPath(String rootPath)
public String toString()
toString
in class Enum<SortedLogState>
Copyright © 2011–2018 The Apache Software Foundation. All rights reserved.