Enum Constant and Description |
---|
LOCAL
Run everything on the local machine
|
MAPREDUCE
Use the Hadoop Map/Reduce framework
|
Modifier and Type | Method and Description |
---|---|
static ExecType |
fromString(java.lang.String execString)
Given a string, determine the exec type.
|
static ExecType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ExecType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ExecType LOCAL
public static final ExecType MAPREDUCE
public static ExecType[] values()
for (ExecType c : ExecType.values()) System.out.println(c);
public static ExecType valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic static ExecType fromString(java.lang.String execString) throws PigException
execString
- accepted values are 'local', 'mapreduce', and 'mapred'PigException
Copyright © 2007-2012 The Apache Software Foundation