org.xcmis.search.query.plan
Enum QueryExecutionPlan.Type

java.lang.Object
  extended by java.lang.Enum<QueryExecutionPlan.Type>
      extended by org.xcmis.search.query.plan.QueryExecutionPlan.Type
All Implemented Interfaces:
Serializable, Comparable<QueryExecutionPlan.Type>
Enclosing class:
QueryExecutionPlan

public static enum QueryExecutionPlan.Type
extends Enum<QueryExecutionPlan.Type>

An enumeration dictating the type of plan tree nodes.


Enum Constant Summary
JOIN
           
LIMIT
           
PROJECT
           
SELECTOR
           
SORT
           
WHERE
           
 
Method Summary
static QueryExecutionPlan.Type forSymbol(String symbol)
          Attempt to find the Type given a symbol.
 String getSymbol()
          Get the symbol representation of this node type.
 String toString()
          
static QueryExecutionPlan.Type valueOf(String name)
          Returns the enum constant of this type with the specified name.
static QueryExecutionPlan.Type[] 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, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

JOIN

public static final QueryExecutionPlan.Type JOIN

SELECTOR

public static final QueryExecutionPlan.Type SELECTOR

PROJECT

public static final QueryExecutionPlan.Type PROJECT

WHERE

public static final QueryExecutionPlan.Type WHERE

SORT

public static final QueryExecutionPlan.Type SORT

LIMIT

public static final QueryExecutionPlan.Type LIMIT
Method Detail

values

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

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

valueOf

public static QueryExecutionPlan.Type 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

getSymbol

public String getSymbol()
Get the symbol representation of this node type.

Returns:
the symbol; never null and never empty

toString

public String toString()

Overrides:
toString in class Enum<QueryExecutionPlan.Type>
See Also:
Enum.toString()

forSymbol

public static QueryExecutionPlan.Type forSymbol(String symbol)
Attempt to find the Type given a symbol. The matching is done independent of case.

Parameters:
symbol - the symbol
Returns:
the Type having the supplied symbol, or null if there is no Type with the supplied symbol
Throws:
IllegalArgumentException - if the symbol is null


Copyright © 2003-2013 eXo Platform SAS. All Rights Reserved.