|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Object java.lang.Enum<Target.WriteMode> org.apache.crunch.Target.WriteMode
public static enum Target.WriteMode
An enum to represent different options the client may specify
for handling the case where the output path, table, etc. referenced
by a Target
already exists.
Enum Constant Summary | |
---|---|
APPEND
If the output target does not exist, create it. |
|
CHECKPOINT
If the output target exists and is newer than any of its source inputs, don't rewrite it, just start the pipeline from here. |
|
DEFAULT
Check to see if the output target already exists before running the pipeline, and if it does, print an error and throw an exception. |
|
OVERWRITE
Check to see if the output target already exists, and if it does, delete it and overwrite it with the new output (if any). |
Method Summary | |
---|---|
static Target.WriteMode |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static Target.WriteMode[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
Methods inherited from class java.lang.Enum |
---|
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final Target.WriteMode DEFAULT
public static final Target.WriteMode OVERWRITE
public static final Target.WriteMode APPEND
public static final Target.WriteMode CHECKPOINT
SourceTarget
instances.
Method Detail |
---|
public static Target.WriteMode[] values()
for (Target.WriteMode c : Target.WriteMode.values()) System.out.println(c);
public static Target.WriteMode valueOf(String name)
name
- the name of the enum constant to be returned.
IllegalArgumentException
- if this enum type has no constant
with the specified name
NullPointerException
- if the argument is null
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |