Package com.yahoo.vespa.hadoop.pig
Enum VespaDocumentOperation.Operation
- java.lang.Object
-
- java.lang.Enum<VespaDocumentOperation.Operation>
-
- com.yahoo.vespa.hadoop.pig.VespaDocumentOperation.Operation
-
- All Implemented Interfaces:
Serializable
,Comparable<VespaDocumentOperation.Operation>
- Enclosing class:
- VespaDocumentOperation
public static enum VespaDocumentOperation.Operation extends Enum<VespaDocumentOperation.Operation>
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VespaDocumentOperation.Operation
fromString(String text)
String
toString()
static boolean
valid(String text)
static VespaDocumentOperation.Operation
valueOf(String name)
Returns the enum constant of this type with the specified name.static VespaDocumentOperation.Operation[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
DOCUMENT
public static final VespaDocumentOperation.Operation DOCUMENT
-
PUT
public static final VespaDocumentOperation.Operation PUT
-
ID
public static final VespaDocumentOperation.Operation ID
-
REMOVE
public static final VespaDocumentOperation.Operation REMOVE
-
UPDATE
public static final VespaDocumentOperation.Operation UPDATE
-
-
Method Detail
-
values
public static VespaDocumentOperation.Operation[] 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 (VespaDocumentOperation.Operation c : VespaDocumentOperation.Operation.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static VespaDocumentOperation.Operation 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 nameNullPointerException
- if the argument is null
-
toString
public String toString()
- Overrides:
toString
in classEnum<VespaDocumentOperation.Operation>
-
fromString
public static VespaDocumentOperation.Operation fromString(String text)
-
valid
public static boolean valid(String text)
-
-