Package org.apache.calcite.prepare
Enum PlannerImpl.State
- java.lang.Object
-
- java.lang.Enum<PlannerImpl.State>
-
- org.apache.calcite.prepare.PlannerImpl.State
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<PlannerImpl.State>
- Enclosing class:
- PlannerImpl
private static enum PlannerImpl.State extends java.lang.Enum<PlannerImpl.State>
Stage of a statement in the query-preparation lifecycle.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description STATE_0_CLOSED
STATE_1_RESET
STATE_2_READY
STATE_3_PARSED
STATE_4_VALIDATED
STATE_5_CONVERTED
-
Constructor Summary
Constructors Modifier Constructor Description private
State()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) void
from(PlannerImpl planner)
Moves planner's state to this state.static PlannerImpl.State
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static PlannerImpl.State[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
STATE_0_CLOSED
public static final PlannerImpl.State STATE_0_CLOSED
-
STATE_1_RESET
public static final PlannerImpl.State STATE_1_RESET
-
STATE_2_READY
public static final PlannerImpl.State STATE_2_READY
-
STATE_3_PARSED
public static final PlannerImpl.State STATE_3_PARSED
-
STATE_4_VALIDATED
public static final PlannerImpl.State STATE_4_VALIDATED
-
STATE_5_CONVERTED
public static final PlannerImpl.State STATE_5_CONVERTED
-
-
Method Detail
-
values
public static PlannerImpl.State[] 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 (PlannerImpl.State c : PlannerImpl.State.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static PlannerImpl.State valueOf(java.lang.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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
from
void from(PlannerImpl planner)
Moves planner's state to this state. This must be a higher state.
-
-