|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eigenbase.util14.Enum14.BasicValue org.eigenbase.sql.SqlKind
public class SqlKind
Enumerates the possible types of SqlNode
.
Only commonly-used nodes have their own type; other nodes are of type
Other
. Some of the values, such as SetQuery
, represent
aggregates.
Field Summary | |
---|---|
static SqlKind |
And
|
static int |
AndORDINAL
And |
static SqlKind |
As
|
static int |
AsORDINAL
AS operator |
static SqlKind |
Between
|
static int |
BetweenORDINAL
Between |
static SqlKind |
Case
|
static int |
CaseORDINAL
CASE |
static SqlKind |
Cast
|
static int |
CastORDINAL
CAST |
static SqlKind |
CollectionTable
|
static int |
CollectionTableORDINAL
Table operator which converts user-defined transform into a relation, for example, select * from TABLE(udx(x, y, z)) . |
static SqlKind |
ColumnListConstructor
|
static int |
ColumnListConstructorORDINAL
COLUMN_LIST constructor, for example, the ROW() call in select *
from TABLE(udx(CURSOR(select ...), ROW(a, b, c, d), x, y, z)) |
static SqlKind |
Comparison
|
static int |
ComparisonORDINAL
Comparison |
static SqlKind |
CursorConstructor
|
static int |
CursorConstructorORDINAL
CURSOR constructor, for example, select * from
TABLE(udx(CURSOR(select ...), x, y, z)) |
static SqlKind |
Delete
|
static int |
DeleteORDINAL
DELETE statement |
static SqlKind |
Descending
|
static int |
DescendingORDINAL
Descending |
static SqlKind |
Divide
|
static int |
DivideORDINAL
Divide |
static SqlKind |
Dml
|
static int |
DmlORDINAL
Dml is an aggregate of all DML operators. |
static SqlKind |
Dot
|
static int |
DotORDINAL
Dot |
static SqlKind |
DynamicParam
|
static int |
DynamicParamORDINAL
Dynamic Param |
static EnumeratedValues |
enumeration
|
static SqlKind |
Equals
|
static int |
EqualsORDINAL
Equals |
static SqlKind |
Escape
|
static int |
EscapeORDINAL
Escape operator (always part of LIKE or SIMILAR TO expression) |
static SqlKind |
Except
|
static int |
ExceptORDINAL
Except |
static SqlKind |
Exists
|
static int |
ExistsORDINAL
Exists |
static SqlKind |
Explain
|
static int |
ExplainORDINAL
EXPLAIN statement |
static SqlKind |
ExplicitTable
|
static int |
ExplicitTableORDINAL
ExplicitTable, e.g. |
static SqlKind |
Expression
|
static int |
ExpressionORDINAL
Expression is an aggregate of all expression operators. |
static SqlKind |
Following
|
static int |
FollowingORDINAL
FOLLOWING |
static SqlKind |
Function
|
static int |
FunctionORDINAL
Function |
static SqlKind |
GreaterThan
|
static int |
GreaterThanORDINAL
GreaterThan |
static SqlKind |
GreaterThanOrEqual
|
static int |
GreaterThanOrEqualORDINAL
GreaterThanOrEqual |
static SqlKind |
Identifier
|
static int |
IdentifierORDINAL
Identifier |
static SqlKind |
In
|
static int |
InORDINAL
In |
static SqlKind |
Insert
|
static int |
InsertORDINAL
INSERT statement |
static SqlKind |
Intersect
|
static int |
IntersectORDINAL
Intersect |
static SqlKind |
IsFalse
|
static int |
IsFalseORDINAL
IS FALSE |
static SqlKind |
IsNull
|
static int |
IsNullORDINAL
IS NULL |
static SqlKind |
IsTrue
|
static int |
IsTrueORDINAL
IS TRUE |
static SqlKind |
IsUnknown
|
static int |
IsUnknownORDINAL
IS UNKNOWN |
static SqlKind |
JdbcFn
|
static int |
JdbcFnORDINAL
Call to a function using JDBC function syntax. |
static SqlKind |
Join
|
static int |
JoinORDINAL
JOIN operator or compound FROM clause. |
static SqlKind |
Lateral
|
static int |
LateralORDINAL
Lateral |
static SqlKind |
LessThan
|
static int |
LessThanORDINAL
LessThan |
static SqlKind |
LessThanOrEqual
|
static int |
LessThanOrEqualORDINAL
LessThanOrEqual |
static SqlKind |
Like
|
static int |
LikeORDINAL
Like |
static SqlKind |
Literal
|
static SqlKind |
LiteralChain
|
static int |
LiteralChainORDINAL
LiteralChain operator (for composite string literals) |
static int |
LiteralORDINAL
Literal |
static SqlKind |
Merge
|
static int |
MergeORDINAL
MERGE statement |
static SqlKind |
Minus
|
static int |
MinusORDINAL
Minus |
static SqlKind |
MinusPrefix
|
static int |
MinusPrefixORDINAL
MinusPrefix |
static SqlKind |
MultisetQueryConstructor
|
static int |
MultisetQueryConstructorORDINAL
MultisetValueConstructor Query Constructor |
static SqlKind |
MultisetValueConstructor
|
static int |
MultisetValueConstructorORDINAL
MultisetValueConstructor Value Constructor |
static SqlKind |
NewSpecification
|
static int |
NewSpecificationORDINAL
NewSpecification |
static SqlKind |
Not
|
static SqlKind |
NotEquals
|
static int |
NotEqualsORDINAL
NotEquals |
static int |
NotORDINAL
Not |
static SqlKind |
Or
|
static SqlKind |
OrderBy
|
static int |
OrderByORDINAL
|
static int |
OrORDINAL
Or |
static SqlKind |
Other
|
static int |
OtherORDINAL
Other |
static SqlKind |
Over
OVER operator |
static SqlKind |
Overlaps
|
static int |
OverlapsORDINAL
Overlaps |
static int |
OverORDINAL
|
static SqlKind |
Plus
|
static int |
PlusORDINAL
Plus |
static SqlKind |
PlusPrefix
|
static int |
PlusPrefixORDINAL
PlusPrefix |
static SqlKind |
Preceding
|
static int |
PrecedingORDINAL
PRECEDING |
static SqlKind |
ProcedureCall
|
static int |
ProcedureCallORDINAL
ProcedureCall |
static SqlKind |
Query
|
static int |
QueryORDINAL
Query is an aggregate of query node types. |
static SqlKind |
Reinterpret
|
static int |
ReinterpretORDINAL
Reinterpret operator (a reinterpret cast) |
static SqlKind |
Row
|
static int |
RowORDINAL
ROW function |
static SqlKind |
ScalarQuery
|
static int |
ScalarQueryORDINAL
ScalarQuery is an aggregate of scalar query node types. |
static SqlKind |
Select
|
static int |
SelectORDINAL
SELECT statement or sub-query |
static SqlKind |
SetQuery
|
static int |
SetQueryORDINAL
SetQuery is an aggregate of set-query node types. |
static SqlKind |
Similar
|
static int |
SimilarORDINAL
Similar |
static SqlKind |
TableSample
|
static int |
TableSampleORDINAL
TABLESAMPLE operator |
static SqlKind |
Times
|
static int |
TimesORDINAL
Times |
static SqlKind |
TopLevel
|
static int |
TopLevelORDINAL
Aggregate of SQL statement types Query , Dml . |
static SqlKind |
Trim
|
static int |
TrimORDINAL
TRIM |
static SqlKind |
Union
|
static int |
UnionORDINAL
Union |
static SqlKind |
Unnest
|
static int |
UnnestORDINAL
Unnest |
static SqlKind |
Update
|
static int |
UpdateORDINAL
UPDATE statement |
static SqlKind |
Values
|
static int |
ValuesORDINAL
Values |
static SqlKind |
Window
Window specification |
static int |
WindowORDINAL
|
Constructor Summary | |
---|---|
private |
SqlKind(String name,
int ordinal)
|
Method Summary | |
---|---|
static SqlKind |
get(int ordinal)
Looks up a kind from its ordinal. |
static SqlKind |
get(String name)
Looks up a kind from its name. |
boolean |
isA(SqlKind kind)
Returns whether this kind is the same as a given kind, or is a member if the given kind is an aggregate |
Methods inherited from class org.eigenbase.util14.Enum14.BasicValue |
---|
compareTo, equals, equals, getDescription, getName, getOrdinal, hashCode, toString, unexpected |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int OtherORDINAL
public static final SqlKind Other
public static final int SelectORDINAL
public static final SqlKind Select
public static final int JoinORDINAL
A FROM clause with more than one table is represented as if it were a join. For example, "FROM x, y, z" is represented as "JOIN(x, JOIN(x, y))".
public static final SqlKind Join
public static final int IdentifierORDINAL
public static final SqlKind Identifier
public static final int LiteralORDINAL
public static final SqlKind Literal
public static final int FunctionORDINAL
public static final SqlKind Function
public static final int ExplainORDINAL
public static final SqlKind Explain
public static final int InsertORDINAL
public static final SqlKind Insert
public static final int DeleteORDINAL
public static final SqlKind Delete
public static final int UpdateORDINAL
public static final SqlKind Update
public static final int DynamicParamORDINAL
public static final SqlKind DynamicParam
public static final int OrderByORDINAL
public static final SqlKind OrderBy
public static final int UnionORDINAL
public static final SqlKind Union
public static final int ExceptORDINAL
public static final SqlKind Except
public static final int IntersectORDINAL
public static final SqlKind Intersect
public static final int AsORDINAL
public static final SqlKind As
public static final int OverORDINAL
public static final SqlKind Over
public static final int WindowORDINAL
public static final SqlKind Window
public static final int MergeORDINAL
public static final SqlKind Merge
public static final int TableSampleORDINAL
public static final SqlKind TableSample
public static final int TimesORDINAL
public static final SqlKind Times
public static final int DivideORDINAL
public static final SqlKind Divide
public static final int PlusORDINAL
public static final SqlKind Plus
public static final int MinusORDINAL
public static final SqlKind Minus
public static final int InORDINAL
public static final SqlKind In
public static final int LessThanORDINAL
public static final SqlKind LessThan
public static final int GreaterThanORDINAL
public static final SqlKind GreaterThan
public static final int LessThanOrEqualORDINAL
public static final SqlKind LessThanOrEqual
public static final int GreaterThanOrEqualORDINAL
public static final SqlKind GreaterThanOrEqual
public static final int EqualsORDINAL
public static final SqlKind Equals
public static final int NotEqualsORDINAL
public static final SqlKind NotEquals
public static final int ComparisonORDINAL
public static final SqlKind Comparison
public static final int OrORDINAL
public static final SqlKind Or
public static final int AndORDINAL
public static final SqlKind And
public static final int DotORDINAL
public static final SqlKind Dot
public static final int OverlapsORDINAL
public static final SqlKind Overlaps
public static final int LikeORDINAL
public static final SqlKind Like
public static final int SimilarORDINAL
public static final SqlKind Similar
public static final int BetweenORDINAL
public static final SqlKind Between
public static final int CaseORDINAL
public static final SqlKind Case
public static final int NotORDINAL
public static final SqlKind Not
public static final int PlusPrefixORDINAL
public static final SqlKind PlusPrefix
public static final int MinusPrefixORDINAL
public static final SqlKind MinusPrefix
public static final int ExistsORDINAL
public static final SqlKind Exists
public static final int ValuesORDINAL
public static final SqlKind Values
public static final int ExplicitTableORDINAL
select * from (TABLE t)
or TABLE
t
. See also CollectionTable
.
public static final SqlKind ExplicitTable
public static final int ProcedureCallORDINAL
public static final SqlKind ProcedureCall
public static final int NewSpecificationORDINAL
public static final SqlKind NewSpecification
public static final int DescendingORDINAL
public static final SqlKind Descending
public static final int IsTrueORDINAL
public static final SqlKind IsTrue
public static final int IsFalseORDINAL
public static final SqlKind IsFalse
public static final int IsUnknownORDINAL
public static final SqlKind IsUnknown
public static final int IsNullORDINAL
public static final SqlKind IsNull
public static final int PrecedingORDINAL
public static final SqlKind Preceding
public static final int FollowingORDINAL
public static final SqlKind Following
public static final int RowORDINAL
public static final SqlKind Row
public static final int CastORDINAL
public static final SqlKind Cast
public static final int TrimORDINAL
public static final SqlKind Trim
public static final int JdbcFnORDINAL
public static final SqlKind JdbcFn
public static final int MultisetValueConstructorORDINAL
public static final SqlKind MultisetValueConstructor
public static final int MultisetQueryConstructorORDINAL
public static final SqlKind MultisetQueryConstructor
public static final int UnnestORDINAL
public static final SqlKind Unnest
public static final int LateralORDINAL
public static final SqlKind Lateral
public static final int CollectionTableORDINAL
select * from TABLE(udx(x, y, z))
. See also the
ExplicitTable
prefix operator.
public static final SqlKind CollectionTable
public static final int CursorConstructorORDINAL
select * from
TABLE(udx(CURSOR(select ...), x, y, z))
public static final SqlKind CursorConstructor
public static final int LiteralChainORDINAL
public static final SqlKind LiteralChain
public static final int EscapeORDINAL
public static final SqlKind Escape
public static final int ReinterpretORDINAL
public static final SqlKind Reinterpret
public static final int SetQueryORDINAL
SetQuery
is an aggregate of set-query node types.
node.isA(Kind.SetQuery)
evaluates to true
if it
node
is an Except
, Intersect
or Union
.
public static final SqlKind SetQuery
public static final int ExpressionORDINAL
Expression
is an aggregate of all expression operators.
public static final SqlKind Expression
public static final int DmlORDINAL
Dml
is an aggregate of all DML operators.
node.isA(Kind.Dml)
evaluates to true
if it
node
is an Insert
or Delete
.
public static final SqlKind Dml
public static final int QueryORDINAL
Query
is an aggregate of query node types.
node.isA(Kind.SetQuery)
evaluates to true
if it
node
is a Except
, Intersect
, Select
or Union
.
public static final SqlKind Query
public static final int TopLevelORDINAL
Query
, Dml
.
public static final SqlKind TopLevel
public static final int ScalarQueryORDINAL
ScalarQuery
is an aggregate of scalar query node types.
public static final SqlKind ScalarQuery
public static final int ColumnListConstructorORDINAL
select *
from TABLE(udx(CURSOR(select ...), ROW(a, b, c, d), x, y, z))
public static final SqlKind ColumnListConstructor
public static final EnumeratedValues enumeration
Constructor Detail |
---|
private SqlKind(String name, int ordinal)
Method Detail |
---|
public boolean isA(SqlKind kind)
public static SqlKind get(int ordinal)
public static SqlKind get(String name)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |