| Package | Description |
|---|---|
| org.apache.calcite.sql |
Provides a SQL parser and object model.
|
| org.apache.calcite.sql.dialect |
SQL unparsers for JDBC dialects.
|
| org.apache.calcite.sql.fun |
Defines the set of standard SQL row-level functions and
operators.
|
| org.apache.calcite.sql.pretty |
Provides a pretty-printer for SQL statements.
|
| Modifier and Type | Method and Description |
|---|---|
(package private) void |
SqlNodeList.andOrList(SqlWriter writer,
SqlKind sepKind) |
(package private) void |
SqlNodeList.commaList(SqlWriter writer) |
void |
SqlIntervalQualifier.unparse(RelDataTypeSystem typeSystem,
SqlWriter writer) |
void |
SqlBinaryStringLiteral.unparse(SqlWriter writer,
int leftPrec,
int rightPrec) |
void |
SqlSelect.unparse(SqlWriter writer,
int leftPrec,
int rightPrec) |
void |
SqlIdentifier.unparse(SqlWriter writer,
int leftPrec,
int rightPrec) |
void |
SqlDateLiteral.unparse(SqlWriter writer,
int leftPrec,
int rightPrec) |
void |
SqlTimestampLiteral.unparse(SqlWriter writer,
int leftPrec,
int rightPrec) |
void |
SqlNumericLiteral.unparse(SqlWriter writer,
int leftPrec,
int rightPrec) |
void |
SqlInsert.unparse(SqlWriter writer,
int leftPrec,
int rightPrec) |
void |
SqlWindow.unparse(SqlWriter writer,
int leftPrec,
int rightPrec) |
void |
SqlTimeLiteral.unparse(SqlWriter writer,
int leftPrec,
int rightPrec) |
void |
SqlUpdate.unparse(SqlWriter writer,
int leftPrec,
int rightPrec) |
void |
SqlDynamicParam.unparse(SqlWriter writer,
int leftPrec,
int rightPrec) |
void |
SqlCall.unparse(SqlWriter writer,
int leftPrec,
int rightPrec) |
void |
SqlDescribeTable.unparse(SqlWriter writer,
int leftPrec,
int rightPrec) |
void |
SqlCharStringLiteral.unparse(SqlWriter writer,
int leftPrec,
int rightPrec) |
void |
SqlMerge.unparse(SqlWriter writer,
int leftPrec,
int rightPrec) |
void |
SqlDescribeSchema.unparse(SqlWriter writer,
int leftPrec,
int rightPrec) |
void |
SqlLiteral.unparse(SqlWriter writer,
int leftPrec,
int rightPrec) |
void |
SqlCollation.unparse(SqlWriter writer,
int leftPrec,
int rightPrec) |
void |
SqlAlter.unparse(SqlWriter writer,
int leftPrec,
int rightPrec) |
void |
SqlIntervalQualifier.unparse(SqlWriter writer,
int leftPrec,
int rightPrec) |
void |
SqlExplain.unparse(SqlWriter writer,
int leftPrec,
int rightPrec) |
void |
SqlMatchRecognize.unparse(SqlWriter writer,
int leftPrec,
int rightPrec) |
void |
SqlAbstractDateTimeLiteral.unparse(SqlWriter writer,
int leftPrec,
int rightPrec) |
abstract void |
SqlNode.unparse(SqlWriter writer,
int leftPrec,
int rightPrec)
Writes a SQL representation of this node to a writer.
|
void |
SqlNodeList.unparse(SqlWriter writer,
int leftPrec,
int rightPrec) |
void |
SqlIntervalLiteral.unparse(SqlWriter writer,
int leftPrec,
int rightPrec) |
void |
SqlDelete.unparse(SqlWriter writer,
int leftPrec,
int rightPrec) |
void |
SqlDataTypeSpec.unparse(SqlWriter writer,
int leftPrec,
int rightPrec) |
void |
SqlOrderBy.Operator.unparse(SqlWriter writer,
SqlCall call,
int leftPrec,
int rightPrec) |
void |
SqlOperator.unparse(SqlWriter writer,
SqlCall call,
int leftPrec,
int rightPrec)
Writes a SQL representation of a call to this operator to a writer,
including parentheses if the operators on either side are of greater
precedence.
|
void |
SqlWindow.SqlWindowOperator.unparse(SqlWriter writer,
SqlCall call,
int leftPrec,
int rightPrec) |
void |
SqlFunctionalOperator.unparse(SqlWriter writer,
SqlCall call,
int leftPrec,
int rightPrec) |
void |
SqlWithItem.SqlWithItemOperator.unparse(SqlWriter writer,
SqlCall call,
int leftPrec,
int rightPrec) |
void |
SqlInfixOperator.unparse(SqlWriter writer,
SqlCall call,
int leftPrec,
int rightPrec) |
void |
SqlLateralOperator.unparse(SqlWriter writer,
SqlCall call,
int leftPrec,
int rightPrec) |
void |
SqlSelectOperator.unparse(SqlWriter writer,
SqlCall call,
int leftPrec,
int rightPrec) |
void |
SqlMatchRecognize.SqlMatchRecognizeOperator.unparse(SqlWriter writer,
SqlCall call,
int leftPrec,
int rightPrec) |
void |
SqlFilterOperator.unparse(SqlWriter writer,
SqlCall call,
int leftPrec,
int rightPrec) |
void |
SqlFunction.unparse(SqlWriter writer,
SqlCall call,
int leftPrec,
int rightPrec) |
void |
SqlAsOperator.unparse(SqlWriter writer,
SqlCall call,
int leftPrec,
int rightPrec) |
void |
SqlJoin.SqlJoinOperator.unparse(SqlWriter writer,
SqlCall call,
int leftPrec,
int rightPrec) |
void |
SqlWith.SqlWithOperator.unparse(SqlWriter writer,
SqlCall call,
int leftPrec,
int rightPrec) |
void |
SqlValuesOperator.unparse(SqlWriter writer,
SqlCall call,
int leftPrec,
int rightPrec) |
void |
SqlUnnestOperator.unparse(SqlWriter writer,
SqlCall call,
int leftPrec,
int rightPrec) |
void |
SqlJdbcFunctionCall.unparse(SqlWriter writer,
SqlCall call,
int leftPrec,
int rightPrec) |
abstract void |
SqlSyntax.unparse(SqlWriter writer,
SqlOperator operator,
SqlCall call,
int leftPrec,
int rightPrec)
Converts a call to an operator of this syntax into a string.
|
protected void |
SqlSetOption.unparseAlterOperation(SqlWriter writer,
int leftPrec,
int rightPrec) |
protected abstract void |
SqlAlter.unparseAlterOperation(SqlWriter writer,
int leftPrec,
int rightPrec) |
static void |
SqlUtil.unparseBinarySyntax(SqlOperator operator,
SqlCall call,
SqlWriter writer,
int leftPrec,
int rightPrec) |
void |
SqlDialect.unparseCall(SqlWriter writer,
SqlCall call,
int leftPrec,
int rightPrec) |
void |
SqlDialect.unparseDateTimeLiteral(SqlWriter writer,
SqlAbstractDateTimeLiteral literal,
int leftPrec,
int rightPrec) |
protected void |
SqlDialect.unparseFetchUsingAnsi(SqlWriter writer,
SqlNode offset,
SqlNode fetch)
Unparses offset/fetch using ANSI standard "OFFSET offset ROWS FETCH NEXT
fetch ROWS ONLY" syntax.
|
protected void |
SqlDialect.unparseFetchUsingLimit(SqlWriter writer,
SqlNode offset,
SqlNode fetch)
Unparses offset/fetch using "LIMIT fetch OFFSET offset" syntax.
|
static void |
SqlUtil.unparseFunctionSyntax(SqlOperator operator,
SqlWriter writer,
SqlCall call)
Unparses a call to an operator which has function syntax.
|
protected void |
SqlOperator.unparseListClause(SqlWriter writer,
SqlNode clause) |
protected void |
SqlOperator.unparseListClause(SqlWriter writer,
SqlNode clause,
SqlKind sepKind) |
void |
SqlDialect.unparseOffsetFetch(SqlWriter writer,
SqlNode offset,
SqlNode fetch)
Converts an offset and fetch into SQL.
|
| Modifier and Type | Method and Description |
|---|---|
void |
HsqldbSqlDialect.unparseCall(SqlWriter writer,
SqlCall call,
int leftPrec,
int rightPrec) |
void |
OracleSqlDialect.unparseCall(SqlWriter writer,
SqlCall call,
int leftPrec,
int rightPrec) |
void |
MssqlSqlDialect.unparseCall(SqlWriter writer,
SqlCall call,
int leftPrec,
int rightPrec) |
void |
PostgresqlSqlDialect.unparseCall(SqlWriter writer,
SqlCall call,
int leftPrec,
int rightPrec) |
void |
MysqlSqlDialect.unparseCall(SqlWriter writer,
SqlCall call,
int leftPrec,
int rightPrec) |
void |
MssqlSqlDialect.unparseDateTimeLiteral(SqlWriter writer,
SqlAbstractDateTimeLiteral literal,
int leftPrec,
int rightPrec) |
private void |
MssqlSqlDialect.unparseFloor(SqlWriter writer,
SqlCall call)
Unparses datetime floor for Microsoft SQL Server.
|
private void |
MysqlSqlDialect.unparseFloor(SqlWriter writer,
SqlCall call)
Unparses datetime floor for MySQL.
|
private void |
MssqlSqlDialect.unparseFloorWithUnit(SqlWriter writer,
SqlCall call,
int charLen,
String offset) |
void |
HsqldbSqlDialect.unparseOffsetFetch(SqlWriter writer,
SqlNode offset,
SqlNode fetch) |
void |
HiveSqlDialect.unparseOffsetFetch(SqlWriter writer,
SqlNode offset,
SqlNode fetch) |
void |
RedshiftSqlDialect.unparseOffsetFetch(SqlWriter writer,
SqlNode offset,
SqlNode fetch) |
void |
MysqlSqlDialect.unparseOffsetFetch(SqlWriter writer,
SqlNode offset,
SqlNode fetch) |
| Modifier and Type | Method and Description |
|---|---|
(package private) void |
SqlOverlapsOperator.arg(SqlWriter writer,
SqlCall call,
int leftPrec,
int rightPrec,
int i) |
void |
SqlMultisetValueConstructor.unparse(SqlWriter writer,
SqlCall call,
int leftPrec,
int rightPrec) |
void |
SqlCaseOperator.unparse(SqlWriter writer,
SqlCall call_,
int leftPrec,
int rightPrec) |
void |
SqlCastFunction.unparse(SqlWriter writer,
SqlCall call,
int leftPrec,
int rightPrec) |
void |
SqlConvertFunction.unparse(SqlWriter writer,
SqlCall call,
int leftPrec,
int rightPrec) |
void |
SqlPositionFunction.unparse(SqlWriter writer,
SqlCall call,
int leftPrec,
int rightPrec) |
void |
SqlExtractFunction.unparse(SqlWriter writer,
SqlCall call,
int leftPrec,
int rightPrec) |
void |
SqlRollupOperator.unparse(SqlWriter writer,
SqlCall call,
int leftPrec,
int rightPrec) |
void |
SqlRowOperator.unparse(SqlWriter writer,
SqlCall call,
int leftPrec,
int rightPrec) |
void |
SqlDatetimeSubtractionOperator.unparse(SqlWriter writer,
SqlCall call,
int leftPrec,
int rightPrec) |
void |
SqlLiteralChainOperator.unparse(SqlWriter writer,
SqlCall call,
int leftPrec,
int rightPrec) |
void |
SqlLikeOperator.unparse(SqlWriter writer,
SqlCall call,
int leftPrec,
int rightPrec) |
void |
SqlMultisetQueryConstructor.unparse(SqlWriter writer,
SqlCall call,
int leftPrec,
int rightPrec) |
void |
SqlFloorFunction.unparse(SqlWriter writer,
SqlCall call,
int leftPrec,
int rightPrec) |
void |
SqlArgumentAssignmentOperator.unparse(SqlWriter writer,
SqlCall call,
int leftPrec,
int rightPrec) |
void |
SqlOverlapsOperator.unparse(SqlWriter writer,
SqlCall call,
int leftPrec,
int rightPrec) |
void |
SqlDotOperator.unparse(SqlWriter writer,
SqlCall call,
int leftPrec,
int rightPrec) |
void |
SqlTrimFunction.unparse(SqlWriter writer,
SqlCall call,
int leftPrec,
int rightPrec) |
void |
SqlItemOperator.unparse(SqlWriter writer,
SqlCall call,
int leftPrec,
int rightPrec) |
void |
SqlDefaultOperator.unparse(SqlWriter writer,
SqlCall call,
int leftPrec,
int rightPrec) |
void |
SqlTranslate3Function.unparse(SqlWriter writer,
SqlCall call,
int leftPrec,
int rightPrec) |
void |
SqlSequenceValueOperator.unparse(SqlWriter writer,
SqlCall call,
int leftPrec,
int rightPrec) |
void |
SqlOverlayFunction.unparse(SqlWriter writer,
SqlCall call,
int leftPrec,
int rightPrec) |
void |
SqlCursorConstructor.unparse(SqlWriter writer,
SqlCall call,
int leftPrec,
int rightPrec) |
void |
SqlColumnListConstructor.unparse(SqlWriter writer,
SqlCall call,
int leftPrec,
int rightPrec) |
void |
SqlExtendOperator.unparse(SqlWriter writer,
SqlCall call,
int leftPrec,
int rightPrec) |
void |
SqlSubstringFunction.unparse(SqlWriter writer,
SqlCall call,
int leftPrec,
int rightPrec) |
void |
SqlThrowOperator.unparse(SqlWriter writer,
SqlCall call,
int leftPrec,
int rightPrec) |
void |
SqlBetweenOperator.unparse(SqlWriter writer,
SqlCall call,
int leftPrec,
int rightPrec) |
private static void |
SqlRollupOperator.unparseCube(SqlWriter writer,
SqlCall call) |
static void |
SqlFloorFunction.unparseDatetimeFunction(SqlWriter writer,
SqlCall call,
String funName,
Boolean datetimeFirst)
Most dialects that natively support datetime floor will use this.
|
| Modifier and Type | Class and Description |
|---|---|
class |
SqlPrettyWriter
Pretty printer for SQL statements.
|
Copyright © 2012–2018 The Apache Software Foundation. All rights reserved.