org.apache.hive.service.cli
Enum OperationState

java.lang.Object
  extended by java.lang.Enum<OperationState>
      extended by org.apache.hive.service.cli.OperationState
All Implemented Interfaces:
Serializable, Comparable<OperationState>

public enum OperationState
extends Enum<OperationState>

OperationState.


Enum Constant Summary
CANCELED
           
CLOSED
           
ERROR
           
FINISHED
           
INITIALIZED
           
RUNNING
           
UNKNOWN
           
 
Method Summary
static OperationState getOperationState(TOperationState tOperationState)
           
 TOperationState toTOperationState()
           
 void validateTransition(OperationState newState)
           
static void validateTransition(OperationState oldState, OperationState newState)
           
static OperationState valueOf(String name)
          Returns the enum constant of this type with the specified name.
static OperationState[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

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
Method Detail

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