@DefaultQualifier(value=org.checkerframework.checker.nullness.qual.NonNull.class,locations=FIELD) @DefaultQualifier(value=org.checkerframework.checker.nullness.qual.NonNull.class,locations=PARAMETER) @DefaultQualifier(value=org.checkerframework.checker.nullness.qual.NonNull.class,locations=RETURN)
See: Description
| Interface | Description |
|---|---|
| SqlDialect.Context |
Information for creating a dialect.
|
| SqlDialectFactory |
Creates a
SqlDialect appropriate
for a given database metadata object. |
| SqlLiteral.SqlSymbol | Deprecated |
| SqlOperandCountRange |
A class that describes how many operands an operator can take.
|
| SqlOperatorTable |
SqlOperatorTable defines a directory interface for enumerating and looking up
SQL operators and functions.
|
| SqlSpecialOperator.TokenSequence |
List of tokens: the input to a parser.
|
| SqlSplittableAggFunction |
Aggregate function that can be split into partial aggregates.
|
| SqlSplittableAggFunction.Registry<E> |
Collection in which one can register an element.
|
| SqlTableFunction |
A function that returns a table.
|
| SqlWriter |
A
SqlWriter is the target to construct a SQL statement from a
parse tree. |
| SqlWriter.Frame |
A Frame is a piece of generated text which shares a common indentation
level.
|
| SqlWriter.FrameType |
Frame type.
|
| SqlWriterConfig |
Configuration for
SqlWriter and SqlPrettyWriter. |
| Symbolizable |
Sub-class should be a Enum and can convert to a
SqlLiteral. |
| Class | Description |
|---|---|
| ExplicitOperatorBinding |
ExplicitOperatorBinding implements SqlOperatorBinding
via an underlying array of known operand types. |
| SqlAbstractDateTimeLiteral |
A SQL literal representing a DATE, TIME or TIMESTAMP value.
|
| SqlAccessType |
SqlAccessType is represented by a set of allowed access types.
|
| SqlAggFunction |
Abstract base class for the definition of an aggregate function: an operator
which aggregates sets of values into a result.
|
| SqlAlienSystemTypeNameSpec |
Represents a type name for an alien system.
|
| SqlAlter |
Base class for an ALTER statements parse tree nodes.
|
| SqlAsOperator |
The
AS operator associates an expression with an alias. |
| SqlBasicCall |
Implementation of
SqlCall that keeps its operands in an array. |
| SqlBasicTypeNameSpec |
A sql type name specification of basic sql type.
|
| SqlBinaryOperator |
SqlBinaryOperator is a binary operator. |
| SqlBinaryStringLiteral |
A binary (or hexadecimal) string literal.
|
| SqlCall |
A
SqlCall is a call to an operator. |
| SqlCallBinding |
SqlCallBinding implements SqlOperatorBinding by
analyzing to the operands of a SqlCall with a SqlValidator. |
| SqlCharStringLiteral |
A character string literal.
|
| SqlCollation |
A
SqlCollation is an object representing a Collate
statement. |
| SqlCollectionTypeNameSpec |
A sql type name specification of collection type.
|
| SqlCreate |
Base class for an CREATE statements parse tree nodes.
|
| SqlDataTypeSpec |
Represents a SQL data type specification in a parse tree.
|
| SqlDateLiteral |
A SQL literal representing a DATE value, such as
DATE
'2004-10-22'. |
| SqlDdl |
Base class for CREATE, DROP and other DDL statements.
|
| SqlDelete |
A
SqlDelete is a node of a parse tree which represents a DELETE
statement. |
| SqlDescribeSchema |
A
SqlDescribeSchema is a node of a parse tree that represents a
DESCRIBE SCHEMA statement. |
| SqlDescribeTable |
A
SqlDescribeTable is a node of a parse tree that represents a
DESCRIBE TABLE statement. |
| SqlDescriptorOperator |
DESCRIPTOR appears as an argument in a function.
|
| SqlDialect |
SqlDialect encapsulates the differences between dialects of SQL. |
| SqlDialect.FakeUtil | Deprecated |
| SqlDialectFactoryImpl |
The default implementation of a
SqlDialectFactory. |
| SqlDialects |
Utilities related to
SqlDialect. |
| SqlDrop |
Base class for an DROP statements parse tree nodes.
|
| SqlDynamicParam |
A
SqlDynamicParam represents a dynamic parameter marker in an
SQL statement. |
| SqlExplain |
A
SqlExplain is a node of a parse tree which represents an
EXPLAIN PLAN statement. |
| SqlFilterOperator |
An operator that applies a filter before rows are included in an aggregate
function.
|
| SqlFunction |
A
SqlFunction is a type of operator which has conventional
function-call syntax. |
| SqlFunctionalOperator |
SqlFunctionalOperator is a base class for special operators which use
functional syntax.
|
| SqlGroupedWindowFunction |
SQL function that computes keys by which rows can be partitioned and
aggregated.
|
| SqlHint |
A
SqlHint is a node of a parse tree which represents
a sql hint expression. |
| SqlHopTableFunction |
SqlHopTableFunction implements an operator for hopping.
|
| SqlIdentifier |
A
SqlIdentifier is an identifier, possibly compound. |
| SqlInfixOperator |
A generalization of a binary operator to involve several (two or more)
arguments, and keywords between each pair of arguments.
|
| SqlInsert |
A
SqlInsert is a node of a parse tree which represents an INSERT
statement. |
| SqlInternalOperator |
Generic operator for nodes with internal syntax.
|
| SqlIntervalLiteral |
A SQL literal representing a time interval.
|
| SqlIntervalLiteral.IntervalValue |
A Interval value.
|
| SqlIntervalQualifier |
Represents an INTERVAL qualifier.
|
| SqlJdbcFunctionCall |
A
SqlJdbcFunctionCall is a node of a parse tree which represents
a JDBC function call. |
| SqlJdbcFunctionCall.SimpleMakeCall |
Converter that calls a built-in function with the same arguments.
|
| SqlJoin |
Parse tree node representing a
JOIN clause. |
| SqlJoin.SqlJoinOperator |
Describes the syntax of the SQL
JOIN operator. |
| SqlLateralOperator |
An operator describing a LATERAL specification.
|
| SqlLiteral |
A
SqlLiteral is a constant. |
| SqlMatchFunction |
Base class for all functions used in MATCH_RECOGNIZE.
|
| SqlMatchRecognize |
SqlNode for MATCH_RECOGNIZE clause.
|
| SqlMatchRecognize.SqlMatchRecognizeOperator |
An operator describing a MATCH_RECOGNIZE specification.
|
| SqlMerge |
A
SqlMerge is a node of a parse tree which represents a MERGE
statement. |
| SqlNode |
A
SqlNode is a SQL parse tree. |
| SqlNodeList |
A
SqlNodeList is a list of SqlNodes. |
| SqlNullTreatmentOperator |
An operator that decides how to handle null input
(
RESPECT NULLS and IGNORE NULLS). |
| SqlNumericLiteral |
A numeric SQL literal.
|
| SqlOperator |
A
SqlOperator is a type of node in a SQL parse tree (it is NOT a
node in a SQL parse tree). |
| SqlOperatorBinding |
SqlOperatorBinding represents the binding of an
SqlOperator to actual operands, along with any additional information
required to validate those operands if needed. |
| SqlOrderBy |
Parse tree node that represents an
ORDER BY on a query other than a
SELECT (e.g. |
| SqlOverOperator |
An operator describing a window function specification.
|
| SqlPivot |
Parse tree node that represents a PIVOT applied to a table reference
(or sub-query).
|
| SqlPostfixOperator |
A postfix unary operator.
|
| SqlPrefixOperator |
A unary operator.
|
| SqlProcedureCallOperator |
SqlProcedureCallOperator represents the CALL statement.
|
| SqlRankFunction |
Operator which aggregates sets of values into a result.
|
| SqlRowTypeNameSpec |
A sql type name specification of row type.
|
| SqlSampleSpec |
Specification of a SQL sample.
|
| SqlSampleSpec.SqlSubstitutionSampleSpec |
Sample specification that orders substitution.
|
| SqlSampleSpec.SqlTableSampleSpec |
Sample specification.
|
| SqlSelect |
A
SqlSelect is a node of a parse tree which represents a select
statement. |
| SqlSelectOperator |
An operator describing a query.
|
| SqlSessionTableFunction |
SqlSessionTableFunction implements an operator for per-key sessionization.
|
| SqlSetOperator |
SqlSetOperator represents a relational set theory operator (UNION, INTERSECT,
MINUS).
|
| SqlSetOption |
SQL parse tree node to represent
SET and RESET statements,
optionally preceded by ALTER SYSTEM or ALTER SESSION. |
| SqlSetSemanticsTableOperator |
SetSemanticsTable appears as an parameter in a table function.
|
| SqlSnapshot |
Parse tree node for "
FOR SYSTEM_TIME AS OF" temporal clause. |
| SqlSnapshot.SqlSnapshotOperator |
An operator describing a FOR SYSTEM_TIME specification.
|
| SqlSpecialOperator |
Generic operator for nodes with special syntax.
|
| SqlSpecialOperator.ReduceResult | |
| SqlSplittableAggFunction.AbstractSumSplitter |
Common splitting strategy for
SUM and SUM0 functions. |
| SqlSplittableAggFunction.CountSplitter |
Splitting strategy for
COUNT. |
| SqlSplittableAggFunction.SelfSplitter |
Aggregate function that splits into two applications of itself.
|
| SqlSplittableAggFunction.Sum0Splitter |
Splitting strategy for
SUM0 function. |
| SqlSplittableAggFunction.SumSplitter |
Splitting strategy for
SUM function. |
| SqlTableRef |
A
SqlTableRef is a node of a parse tree which represents
a table reference. |
| SqlTimeLiteral |
A SQL literal representing a TIME value, for example
TIME
'14:33:44.567'. |
| SqlTimestampLiteral |
A SQL literal representing a TIMESTAMP value, for example
TIMESTAMP
'1969-07-21 03:15 GMT'. |
| SqlTumbleTableFunction |
SqlTumbleTableFunction implements an operator for tumbling.
|
| SqlTypeConstructorFunction |
Type Constructor function.
|
| SqlTypeNameSpec |
A
SqlTypeNameSpec is a type name specification that allows user to
customize sql node unparsing and data type deriving. |
| SqlUnnestOperator |
The
UNNEST operator. |
| SqlUnpivot |
Parse tree node that represents UNPIVOT applied to a table reference
(or sub-query).
|
| SqlUnresolvedFunction |
Placeholder for an unresolved function.
|
| SqlUpdate |
A
SqlUpdate is a node of a parse tree which represents an UPDATE
statement. |
| SqlUserDefinedTypeNameSpec |
A sql type name specification of user defined type.
|
| SqlUtil |
Contains utility functions related to SQL parsing, all static.
|
| SqlUtil.DatabaseMetaDataInvocationHandler |
Handles particular
DatabaseMetaData methods; invocations of other
methods will fall through to the base class,
BarfingInvocationHandler, which will throw
an error. |
| SqlValuesOperator |
The
VALUES operator. |
| SqlWindow |
SQL window specification.
|
| SqlWindowTableFunction |
Base class for a table-valued function that computes windows.
|
| SqlWindowTableFunction.AbstractOperandMetadata |
Partial implementation of operand type checker.
|
| SqlWith |
The WITH clause of a query.
|
| SqlWithinDistinctOperator |
An operator that applies a distinct operation before rows are included in an
aggregate function.
|
| SqlWithinGroupOperator |
An operator that applies a sort operation before rows are included in an aggregate function.
|
| SqlWithItem |
An item in a WITH clause of a query.
|
| TableCharacteristic |
A table-valued input parameter of a table function is classified by three
characteristics.
|
| TableCharacteristic.Builder |
Builder for
TableCharacteristic. |
| Enum | Description |
|---|---|
| JoinConditionType |
Enumerates the types of condition in a join expression.
|
| JoinType |
Enumerates the types of join.
|
| SqlAccessEnum |
Access type.
|
| SqlCollation.Coercibility |
A <character value expression> consisting of a column
reference has the coercibility characteristic Implicit, with collating
sequence as defined when the column was created.
|
| SqlDialect.CalendarPolicy |
Whether this JDBC driver needs you to pass a Calendar object to methods
such as
ResultSet.getTimestamp(int, java.util.Calendar). |
| SqlDialect.DatabaseProduct |
Rough list of flavors of database.
|
| SqlExplain.Depth |
The level of abstraction with which to display the plan.
|
| SqlExplainFormat |
Output format for
EXPLAIN PLAN statement. |
| SqlExplainLevel |
SqlExplainLevel defines detail levels for EXPLAIN PLAN.
|
| SqlFunctionCategory |
Enumeration of the categories of
SQL-invoked routines.
|
| SqlHint.HintOptionFormat |
Enumeration that represents hint option format.
|
| SqlInsertKeyword |
Defines the keywords that can occur immediately after the "INSERT" keyword.
|
| SqlJdbcDataTypeName |
Defines the name of the types which can occur as a type argument
in a JDBC
{fn CONVERT(value, type)} function. |
| SqlJsonConstructorNullClause |
Indicating how JSON constructors handle null.
|
| SqlJsonEmptyOrError |
Flag to indicate if the json value is missing or an error is thrown where
EmptyOrErrorBehavior is invoked.
|
| SqlJsonEncoding |
Supported json encodings that could be passed to a
JsonValueExpression. |
| SqlJsonExistsErrorBehavior |
Categorizing Json exists error behaviors.
|
| SqlJsonQueryEmptyOrErrorBehavior |
Categorizing Json query empty or error behaviors.
|
| SqlJsonQueryWrapperBehavior |
How json query function handle array result.
|
| SqlJsonValueEmptyOrErrorBehavior |
Categorizing Json value empty or error behaviors.
|
| SqlJsonValueReturning |
Flag to indicate the explicit return type of JSON_VALUE.
|
| SqlKind |
Enumerates the possible types of
SqlNode. |
| SqlMatchRecognize.AfterOption |
Options for
AFTER MATCH clause. |
| SqlMatchRecognize.RowsPerMatchOption |
Options for
ROWS PER MATCH. |
| SqlNullSemantics |
SqlNullSemantics defines the possible comparison rules for values which might
be null.
|
| SqlSelectKeyword |
Defines the keywords which can occur immediately after the "SELECT" keyword.
|
| SqlStateCodes | Deprecated
Use
org.apache.calcite.avatica.SqlState |
| SqlSyntax |
Enumeration of possible syntactic types of
operators. |
| SqlWriter.FrameTypeEnum |
Enumerates the types of frame.
|
| SqlWriter.SubQueryStyle |
Style of formatting sub-queries.
|
| SqlWriterConfig.LineFolding |
Policy for how to do deal with long lines.
|
| TableCharacteristic.Semantics |
Input table has either row semantics or set semantics.
|
This package, and the dependent org.apache.calcite.sql.parser
package, are independent of the other Calcite packages, so may be used
standalone.
SqlParser parses a SQL string to a
parse tree. It only performs the most basic syntactic validation.
Every node in the parse tree is a SqlNode.
Sub-types are:
SqlLiteral represents a boolean,
numeric, string, or date constant, or the value NULL.
SqlIdentifier represents an
identifier, such as EMPNO or emp.deptno.
SqlCall is a call to an operator or
function. By means of special operators, we can use this construct
to represent virtually every non-leaf node in the tree. For example,
a select statement is a call to the 'select'
operator.SqlNodeList is a list of nodes.A SqlOperator describes the behavior of a
node in the tree, such as how to un-parse a
SqlCall into a SQL string. It is
important to note that operators are metadata, not data: there is only
one SqlOperator instance representing the '=' operator, even
though there may be many calls to it.
SqlOperator has several derived classes which make it easy to
define new operators: SqlFunction,
SqlBinaryOperator,
SqlPrefixOperator,
SqlPostfixOperator.
And there are singleton classes for special syntactic constructs
SqlSelectOperator
and SqlJoin.SqlJoinOperator. (These
special operators even have their own sub-types of
SqlCall:
SqlSelect and
SqlJoin.)
A SqlOperatorTable is a collection of
operators. By supplying your own operator table, you can customize the
dialect of SQL without modifying the parser.
SqlValidator checks that
a tree of SqlNodes is
semantically valid. You supply a
SqlOperatorTable to describe the available
functions and operators, and a
SqlValidatorCatalogReader for
access to the database's catalog.
A SqlWriter converts a tree of
SqlNodes into a SQL string. A
SqlDialect defines how this happens.
Copyright © 2012-2022 Apache Software Foundation. All Rights Reserved.