org.apache.lens.api.query
Enum SubmitOp

java.lang.Object
  extended by java.lang.Enum<SubmitOp>
      extended by org.apache.lens.api.query.SubmitOp
All Implemented Interfaces:
Serializable, Comparable<SubmitOp>

public enum SubmitOp
extends Enum<SubmitOp>

The Enum for query submit operations.


Enum Constant Summary
ESTIMATE
          Estimate query cost
EXECUTE
          Execute the query
EXECUTE_WITH_TIMEOUT
          Execute query and return result within timeout, if query is successful.
EXPLAIN
          Explain the query.
EXPLAIN_AND_PREPARE
          Explain and prepare the query.
PREPARE
          Prepare the query.
 
Method Summary
static SubmitOp valueOf(String name)
          Returns the enum constant of this type with the specified name.
static SubmitOp[] 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

ESTIMATE

public static final SubmitOp ESTIMATE
Estimate query cost


EXECUTE

public static final SubmitOp EXECUTE
Execute the query


EXPLAIN

public static final SubmitOp EXPLAIN
Explain the query.


PREPARE

public static final SubmitOp PREPARE
Prepare the query.


EXPLAIN_AND_PREPARE

public static final SubmitOp EXPLAIN_AND_PREPARE
Explain and prepare the query.


EXECUTE_WITH_TIMEOUT

public static final SubmitOp EXECUTE_WITH_TIMEOUT
Execute query and return result within timeout, if query is successful.

Method Detail

values

public static SubmitOp[] 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 (SubmitOp c : SubmitOp.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static SubmitOp 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


Copyright © 2014–2015 Apache Software Foundation. All rights reserved.