org.eigenbase.sql
Enum SqlExplainLevel

java.lang.Object
  extended by java.lang.Enum<SqlExplainLevel>
      extended by org.eigenbase.sql.SqlExplainLevel
All Implemented Interfaces:
Serializable, Comparable<SqlExplainLevel>, SqlLiteral.SqlSymbol

public enum SqlExplainLevel
extends Enum<SqlExplainLevel>
implements SqlLiteral.SqlSymbol

SqlExplainLevel defines detail levels for EXPLAIN PLAN.

Version:
$Id: //open/dev/farrago/src/org/eigenbase/sql/SqlExplainLevel.java#8 $
Author:
John V. Sichi

Enum Constant Summary
ALL_ATTRIBUTES
          Display all attributes, including cost.
DIGEST_ATTRIBUTES
          Display only attributes which contribute to an expression's digest.
EXPPLAN_ATTRIBUTES
          Display only attributes which contribute to the plan output.
NO_ATTRIBUTES
          Suppress all attributes.
 
Method Summary
static SqlExplainLevel valueOf(String name)
          Returns the enum constant of this type with the specified name.
static SqlExplainLevel[] values()
          Returns an array containing the constants of this enum type, in the order they're declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.eigenbase.sql.SqlLiteral.SqlSymbol
name, ordinal
 

Enum Constant Detail

NO_ATTRIBUTES

public static final SqlExplainLevel NO_ATTRIBUTES
Suppress all attributes.


EXPPLAN_ATTRIBUTES

public static final SqlExplainLevel EXPPLAN_ATTRIBUTES
Display only attributes which contribute to the plan output.


DIGEST_ATTRIBUTES

public static final SqlExplainLevel DIGEST_ATTRIBUTES
Display only attributes which contribute to an expression's digest.


ALL_ATTRIBUTES

public static final SqlExplainLevel ALL_ATTRIBUTES
Display all attributes, including cost.

Method Detail

values

public static final SqlExplainLevel[] values()
Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants as follows:
for(SqlExplainLevel c : SqlExplainLevel.values())
        System.out.println(c);

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

valueOf

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