org.apache.hive.service.cli
Enum OperationState
java.lang.Object
java.lang.Enum<OperationState>
org.apache.hive.service.cli.OperationState
- All Implemented Interfaces:
- Serializable, Comparable<OperationState>
public enum OperationState
- extends Enum<OperationState>
OperationState.
INITIALIZED
public static final OperationState INITIALIZED
RUNNING
public static final OperationState RUNNING
FINISHED
public static final OperationState FINISHED
CANCELED
public static final OperationState CANCELED
CLOSED
public static final OperationState CLOSED
ERROR
public static final OperationState ERROR
UNKNOWN
public static final OperationState UNKNOWN
values
public static OperationState[] 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 (OperationState c : OperationState.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static OperationState 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
getOperationState
public static OperationState getOperationState(TOperationState tOperationState)
validateTransition
public static void validateTransition(OperationState oldState,
OperationState newState)
throws HiveSQLException
- Throws:
HiveSQLException
validateTransition
public void validateTransition(OperationState newState)
throws HiveSQLException
- Throws:
HiveSQLException
toTOperationState
public TOperationState toTOperationState()
Copyright © 2013 The Apache Software Foundation