| Package | Description |
|---|---|
| org.apache.calcite.rel.rel2sql |
Translates a relational expression to SQL parse tree.
|
| org.apache.calcite.schema |
Schema SPI.
|
| org.apache.calcite.schema.impl |
Utilities to help implement Calcite's SPIs.
|
| org.apache.calcite.sql |
Provides a SQL parser and object model.
|
| org.apache.calcite.sql.advise |
Provides hints and corrections for editing SQL statements.
|
| 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.parser |
Provides a SQL parser.
|
| org.apache.calcite.sql.type |
SQL type system.
|
| org.apache.calcite.sql.util |
Utility classes for the SQL object model, parsing, and validation.
|
| org.apache.calcite.sql.validate |
SQL validation.
|
| org.apache.calcite.sql2rel |
Translates a SQL parse tree to relational expression.
|
| org.apache.calcite.util |
Provides utility classes.
|
| Modifier and Type | Method and Description |
|---|---|
private SqlCall |
RelToSqlConverter.as(SqlNode e,
String alias) |
private SqlCall |
SqlImplementor.Context.toSql(RexProgram program,
RexOver rexOver) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
Table.rolledUpColumnValidInsideAgg(String column,
SqlCall call,
SqlNode parent,
CalciteConnectionConfig config)
Determines whether the given rolled up column can be used inside the given aggregate function.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
AbstractTable.rolledUpColumnValidInsideAgg(String column,
SqlCall call,
SqlNode parent,
CalciteConnectionConfig config) |
| Modifier and Type | Class and Description |
|---|---|
class |
SqlAlter
Base class for an ALTER statements parse tree nodes.
|
class |
SqlBasicCall
Implementation of
SqlCall that keeps its operands in an array. |
class |
SqlCreate
Base class for an CREATE statements parse tree nodes.
|
class |
SqlDdl
Base class for CREATE, DROP and other DDL statements.
|
class |
SqlDelete
A
SqlDelete is a node of a parse tree which represents a DELETE
statement. |
class |
SqlDescribeSchema
A
SqlDescribeSchema is a node of a parse tree that represents a
DESCRIBE SCHEMA statement. |
class |
SqlDescribeTable
A
SqlDescribeTable is a node of a parse tree that represents a
DESCRIBE TABLE statement. |
class |
SqlDrop
Base class for an DROP statements parse tree nodes.
|
class |
SqlExplain
A
SqlExplain is a node of a parse tree which represents an
EXPLAIN PLAN statement. |
class |
SqlInsert
A
SqlInsert is a node of a parse tree which represents an INSERT
statement. |
class |
SqlJoin
Parse tree node representing a
JOIN clause. |
class |
SqlMatchRecognize
SqlNode for MATCH_RECOGNIZE clause.
|
class |
SqlMerge
A
SqlMerge is a node of a parse tree which represents a MERGE
statement. |
class |
SqlOrderBy
Parse tree node that represents an
ORDER BY on a query other than a
SELECT (e.g. |
class |
SqlSelect
A
SqlSelect is a node of a parse tree which represents a select
statement. |
class |
SqlSetOption
SQL parse tree node to represent
SET and RESET statements,
optionally preceded by ALTER SYSTEM or ALTER SESSION. |
class |
SqlUpdate
A
SqlUpdate is a node of a parse tree which represents an UPDATE
statement. |
class |
SqlWindow
SQL window specification.
|
class |
SqlWith
The WITH clause of a query.
|
class |
SqlWithItem
An item in a WITH clause of a query.
|
| Modifier and Type | Field and Description |
|---|---|
private SqlCall |
SqlCallBinding.call |
private static SqlCall |
SqlCallBinding.DEFAULT_CALL |
private SqlCall |
SqlJdbcFunctionCall.lookupCall |
private SqlCall |
SqlWindow.windowCall |
| Modifier and Type | Method and Description |
|---|---|
SqlCall |
SqlOperator.createCall(SqlLiteral functionQualifier,
SqlParserPos pos,
SqlNode... operands)
Creates a call to this operand with an array of operands.
|
SqlCall |
SqlWindow.SqlWindowOperator.createCall(SqlLiteral functionQualifier,
SqlParserPos pos,
SqlNode... operands) |
SqlCall |
SqlWithItem.SqlWithItemOperator.createCall(SqlLiteral functionQualifier,
SqlParserPos pos,
SqlNode... operands) |
SqlCall |
SqlSelectOperator.createCall(SqlLiteral functionQualifier,
SqlParserPos pos,
SqlNode... operands) |
SqlCall |
SqlMatchRecognize.SqlMatchRecognizeOperator.createCall(SqlLiteral functionQualifier,
SqlParserPos pos,
SqlNode... operands) |
SqlCall |
SqlJoin.SqlJoinOperator.createCall(SqlLiteral functionQualifier,
SqlParserPos pos,
SqlNode... operands) |
SqlCall |
SqlWith.SqlWithOperator.createCall(SqlLiteral functionQualifier,
SqlParserPos pos,
SqlNode... operands) |
SqlCall |
SqlJdbcFunctionCall.createCall(SqlLiteral functionQualifier,
SqlParserPos pos,
SqlNode... operands) |
SqlCall |
SqlOperator.createCall(SqlNodeList nodeList)
Creates a call to this operand with a list of operands contained in a
SqlNodeList. |
SqlCall |
SqlOperator.createCall(SqlParserPos pos,
List<? extends SqlNode> operandList)
Creates a call to this operand with a list of operands.
|
SqlCall |
SqlOperator.createCall(SqlParserPos pos,
SqlNode... operands)
Creates a call to this operand with an array of operands.
|
SqlCall |
SqlJdbcFunctionCall.MakeCall.createCall(SqlParserPos pos,
SqlNode... operands)
Creates and return a
SqlCall. |
SqlCall |
SqlJdbcFunctionCall.SimpleMakeCall.createCall(SqlParserPos pos,
SqlNode... operands) |
SqlCall |
SqlJdbcFunctionCall.PermutingMakeCall.createCall(SqlParserPos pos,
SqlNode... operands) |
SqlCall |
SqlCallBinding.getCall()
Returns the call node.
|
SqlCall |
SqlJdbcFunctionCall.getLookupCall() |
SqlCall |
SqlWindow.getWindowCall() |
static SqlCall |
SqlUtil.makeCall(SqlOperatorTable opTab,
SqlIdentifier id)
If an identifier is a legitimate call to a function which has no
arguments and requires no parentheses (for example "CURRENT_USER"),
returns a call to that function, otherwise returns null.
|
SqlCall |
SqlCallBinding.permutedCall()
Returns a call that is equivalent except that arguments have been
permuted into the logical order.
|
| Modifier and Type | Method and Description |
|---|---|
<R> R |
SqlOperator.acceptCall(SqlVisitor<R> visitor,
SqlCall call)
Accepts a
SqlVisitor, visiting each operand of a call. |
<R> void |
SqlOperator.acceptCall(SqlVisitor<R> visitor,
SqlCall call,
boolean onlyExpressions,
SqlBasicVisitor.ArgHandler<R> argHandler)
Accepts a
SqlVisitor, directing an
SqlBasicVisitor.ArgHandler
to visit an operand of a call. |
<R> void |
SqlWindow.SqlWindowOperator.acceptCall(SqlVisitor<R> visitor,
SqlCall call,
boolean onlyExpressions,
SqlBasicVisitor.ArgHandler<R> argHandler) |
<R> void |
SqlSelectOperator.acceptCall(SqlVisitor<R> visitor,
SqlCall call,
boolean onlyExpressions,
SqlBasicVisitor.ArgHandler<R> argHandler) |
<R> void |
SqlMatchRecognize.SqlMatchRecognizeOperator.acceptCall(SqlVisitor<R> visitor,
SqlCall call,
boolean onlyExpressions,
SqlBasicVisitor.ArgHandler<R> argHandler) |
<R> void |
SqlOverOperator.acceptCall(SqlVisitor<R> visitor,
SqlCall call,
boolean onlyExpressions,
SqlBasicVisitor.ArgHandler<R> argHandler)
Accepts a
SqlVisitor, and tells it to visit each child. |
<R> void |
SqlAsOperator.acceptCall(SqlVisitor<R> visitor,
SqlCall call,
boolean onlyExpressions,
SqlBasicVisitor.ArgHandler<R> argHandler) |
protected RelDataType |
SqlPrefixOperator.adjustType(SqlValidator validator,
SqlCall call,
RelDataType type) |
protected RelDataType |
SqlOperator.adjustType(SqlValidator validator,
SqlCall call,
RelDataType type)
Validates and determines coercibility and resulting collation name of
binary operator if needed.
|
protected RelDataType |
SqlBinaryOperator.adjustType(SqlValidator validator,
SqlCall call,
RelDataType type) |
protected RelDataType |
SqlPostfixOperator.adjustType(SqlValidator validator,
SqlCall call,
RelDataType type) |
protected void |
SqlOperator.checkOperandCount(SqlValidator validator,
SqlOperandTypeChecker argType,
SqlCall call) |
protected List<String> |
SqlOperator.constructArgNameList(SqlCall call) |
protected List<RelDataType> |
SqlOperator.constructArgTypeList(SqlValidator validator,
SqlValidatorScope scope,
SqlCall call,
List<SqlNode> args,
boolean convertRowArgToColumnList) |
protected List<SqlNode> |
SqlOperator.constructOperandList(SqlValidator validator,
SqlCall call,
List<String> argNames) |
RelDataType |
SqlOperator.deriveType(SqlValidator validator,
SqlValidatorScope scope,
SqlCall call)
Derives the type of a call to this operator.
|
RelDataType |
SqlBinaryOperator.deriveType(SqlValidator validator,
SqlValidatorScope scope,
SqlCall call) |
RelDataType |
SqlInternalOperator.deriveType(SqlValidator validator,
SqlValidatorScope scope,
SqlCall call) |
RelDataType |
SqlFilterOperator.deriveType(SqlValidator validator,
SqlValidatorScope scope,
SqlCall call) |
RelDataType |
SqlOverOperator.deriveType(SqlValidator validator,
SqlValidatorScope scope,
SqlCall call) |
RelDataType |
SqlFunction.deriveType(SqlValidator validator,
SqlValidatorScope scope,
SqlCall call) |
RelDataType |
SqlAsOperator.deriveType(SqlValidator validator,
SqlValidatorScope scope,
SqlCall call) |
RelDataType |
SqlJdbcFunctionCall.deriveType(SqlValidator validator,
SqlValidatorScope scope,
SqlCall call) |
private RelDataType |
SqlFunction.deriveType(SqlValidator validator,
SqlValidatorScope scope,
SqlCall call,
boolean convertRowArgToColumnList) |
SqlMonotonicity |
SqlOperator.getMonotonicity(SqlCall call,
SqlValidatorScope scope)
Deprecated.
|
private List<SqlNode> |
SqlCallBinding.permutedOperands(SqlCall call)
Returns the operands to a call permuted into the same order as the
formal parameters of the function.
|
protected void |
SqlOperator.preValidateCall(SqlValidator validator,
SqlValidatorScope scope,
SqlCall call)
Receives notification that validation of a call to this operator is
beginning.
|
SqlNode |
SqlOperator.rewriteCall(SqlValidator validator,
SqlCall call)
Rewrites a call to this operator.
|
SqlNode |
SqlProcedureCallOperator.rewriteCall(SqlValidator validator,
SqlCall call) |
SqlNode |
SqlJdbcFunctionCall.rewriteCall(SqlValidator validator,
SqlCall call) |
void |
SqlWindow.setWindowCall(SqlCall windowCall) |
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.
|
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) |
static void |
SqlUtil.unparseFunctionSyntax(SqlOperator operator,
SqlWriter writer,
SqlCall call)
Unparses a call to an operator which has function syntax.
|
void |
SqlOperator.validateCall(SqlCall call,
SqlValidator validator,
SqlValidatorScope scope,
SqlValidatorScope operandScope)
Validates a call to this operator.
|
void |
SqlAggFunction.validateCall(SqlCall call,
SqlValidator validator,
SqlValidatorScope scope,
SqlValidatorScope operandScope) |
void |
SqlMatchRecognize.SqlMatchRecognizeOperator.validateCall(SqlCall call,
SqlValidator validator,
SqlValidatorScope scope,
SqlValidatorScope operandScope) |
void |
SqlFilterOperator.validateCall(SqlCall call,
SqlValidator validator,
SqlValidatorScope scope,
SqlValidatorScope operandScope) |
void |
SqlOverOperator.validateCall(SqlCall call,
SqlValidator validator,
SqlValidatorScope scope,
SqlValidatorScope operandScope) |
void |
SqlFunction.validateCall(SqlCall call,
SqlValidator validator,
SqlValidatorScope scope,
SqlValidatorScope operandScope) |
void |
SqlAsOperator.validateCall(SqlCall call,
SqlValidator validator,
SqlValidatorScope scope,
SqlValidatorScope operandScope) |
void |
SqlSetOperator.validateCall(SqlCall call,
SqlValidator validator,
SqlValidatorScope scope,
SqlValidatorScope operandScope) |
void |
SqlWith.SqlWithOperator.validateCall(SqlCall call,
SqlValidator validator,
SqlValidatorScope scope,
SqlValidatorScope operandScope) |
RelDataType |
SqlOperator.validateOperands(SqlValidator validator,
SqlValidatorScope scope,
SqlCall call)
Validates the operands of a call, inferring the return type in the
process.
|
protected void |
SqlFunction.validateQuantifier(SqlValidator validator,
SqlCall call)
Throws a validation error if a DISTINCT or ALL quantifier is present but
not allowed.
|
Void |
SqlUtil.Genealogist.visit(SqlCall call) |
| Constructor and Description |
|---|
SqlCallBinding(SqlValidator validator,
SqlValidatorScope scope,
SqlCall call)
Creates a call binding.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
SqlAdvisorValidator.validateOver(SqlCall call,
SqlValidatorScope scope) |
| 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) |
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) |
| Modifier and Type | Class and Description |
|---|---|
class |
SqlCase
A
SqlCase is a node of a parse tree which represents a case
statement. |
| Modifier and Type | Method and Description |
|---|---|
static SqlCall |
SqlStdOperatorTable.convertAuxiliaryToGroupCall(SqlCall call)
Converts a call to a grouped auxiliary function
to a call to the grouped window function.
|
private static SqlCall |
SqlStdOperatorTable.copy(SqlCall call,
SqlOperator operator)
Creates a copy of a call with a new operator.
|
SqlCall |
SqlCaseOperator.createCall(SqlLiteral functionQualifier,
SqlParserPos pos,
SqlNode... operands) |
SqlCall |
SqlTrimFunction.createCall(SqlLiteral functionQualifier,
SqlParserPos pos,
SqlNode... operands) |
static SqlCall |
SqlFloorFunction.replaceTimeUnitOperand(SqlCall call,
String literal,
SqlParserPos pos)
Copies a
SqlCall, replacing the time unit operand with the given
literal. |
| Modifier and Type | Method and Description |
|---|---|
<R> void |
SqlDotOperator.acceptCall(SqlVisitor<R> visitor,
SqlCall call,
boolean onlyExpressions,
SqlBasicVisitor.ArgHandler<R> argHandler) |
(package private) void |
SqlOverlapsOperator.arg(SqlWriter writer,
SqlCall call,
int leftPrec,
int rightPrec,
int i) |
private List<RelDataType> |
SqlBetweenOperator.collectOperandTypes(SqlValidator validator,
SqlValidatorScope scope,
SqlCall call) |
static SqlLiteral |
SqlLiteralChainOperator.concatenateOperands(SqlCall call)
Concatenates the operands of a call to this operator.
|
static SqlCall |
SqlStdOperatorTable.convertAuxiliaryToGroupCall(SqlCall call)
Converts a call to a grouped auxiliary function
to a call to the grouped window function.
|
static List<Pair<SqlNode,AuxiliaryConverter>> |
SqlStdOperatorTable.convertGroupToAuxiliaryCalls(SqlCall call)
Converts a call to a grouped window function to a call to its auxiliary
window function(s).
|
private static SqlCall |
SqlStdOperatorTable.copy(SqlCall call,
SqlOperator operator)
Creates a copy of a call with a new operator.
|
RelDataType |
SqlCaseOperator.deriveType(SqlValidator validator,
SqlValidatorScope scope,
SqlCall call) |
RelDataType |
SqlMultisetQueryConstructor.deriveType(SqlValidator validator,
SqlValidatorScope scope,
SqlCall call) |
RelDataType |
SqlDotOperator.deriveType(SqlValidator validator,
SqlValidatorScope scope,
SqlCall call) |
RelDataType |
SqlSequenceValueOperator.deriveType(SqlValidator validator,
SqlValidatorScope scope,
SqlCall call) |
RelDataType |
SqlCountAggFunction.deriveType(SqlValidator validator,
SqlValidatorScope scope,
SqlCall call) |
RelDataType |
SqlCursorConstructor.deriveType(SqlValidator validator,
SqlValidatorScope scope,
SqlCall call) |
RelDataType |
SqlInOperator.deriveType(SqlValidator validator,
SqlValidatorScope scope,
SqlCall call) |
static SqlCall |
SqlFloorFunction.replaceTimeUnitOperand(SqlCall call,
String literal,
SqlParserPos pos)
Copies a
SqlCall, replacing the time unit operand with the given
literal. |
SqlNode |
SqlCoalesceFunction.rewriteCall(SqlValidator validator,
SqlCall call) |
SqlNode |
SqlDatePartFunction.rewriteCall(SqlValidator validator,
SqlCall call) |
SqlNode |
SqlNullifFunction.rewriteCall(SqlValidator validator,
SqlCall call) |
SqlNode |
SqlNewOperator.rewriteCall(SqlValidator validator,
SqlCall call) |
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.
|
void |
SqlCaseOperator.validateCall(SqlCall call,
SqlValidator validator,
SqlValidatorScope scope,
SqlValidatorScope operandScope) |
void |
SqlAbstractGroupFunction.validateCall(SqlCall call,
SqlValidator validator,
SqlValidatorScope scope,
SqlValidatorScope operandScope) |
void |
SqlLiteralChainOperator.validateCall(SqlCall call,
SqlValidator validator,
SqlValidatorScope scope,
SqlValidatorScope operandScope) |
void |
SqlDotOperator.validateCall(SqlCall call,
SqlValidator validator,
SqlValidatorScope scope,
SqlValidatorScope operandScope) |
void |
SqlSequenceValueOperator.validateCall(SqlCall call,
SqlValidator validator,
SqlValidatorScope scope,
SqlValidatorScope operandScope) |
Void |
SqlBetweenOperator.AndFinder.visit(SqlCall call) |
| Modifier and Type | Method and Description |
|---|---|
protected SqlCall |
SqlAbstractParserImpl.createCall(SqlIdentifier funName,
SqlParserPos pos,
SqlFunctionCategory funcType,
SqlLiteral functionQualifier,
Iterable<? extends SqlNode> operands)
Creates a call.
|
protected SqlCall |
SqlAbstractParserImpl.createCall(SqlIdentifier funName,
SqlParserPos pos,
SqlFunctionCategory funcType,
SqlLiteral functionQualifier,
SqlNode[] operands)
Creates a call.
|
| Modifier and Type | Method and Description |
|---|---|
static RelDataType |
SqlTypeUtil.makeNullableIfOperandsAre(SqlValidator validator,
SqlValidatorScope scope,
SqlCall call,
RelDataType type)
Recreates a given RelDataType with nullability iff any of the operands
of a call are nullable.
|
| Modifier and Type | Field and Description |
|---|---|
private SqlCall |
SqlShuttle.CallCopyingArgHandler.call |
| Modifier and Type | Method and Description |
|---|---|
R |
SqlVisitor.visit(SqlCall call)
Visits a call to a
SqlOperator. |
R |
SqlBasicVisitor.visit(SqlCall call) |
SqlNode |
SqlShuttle.visit(SqlCall call) |
| Constructor and Description |
|---|
CallCopyingArgHandler(SqlCall call,
boolean alwaysCopy) |
| Modifier and Type | Field and Description |
|---|---|
private SqlCall |
SetopNamespace.call |
protected SqlCall |
AliasNamespace.call |
private SqlCall |
ProcedureNamespace.call |
private SqlCall |
CollectScope.child |
private SqlCall |
CollectNamespace.child |
private SqlCall |
OverScope.overCall |
private SqlCall |
UnnestNamespace.unnest |
private SqlCall |
TableConstructorNamespace.values |
| Modifier and Type | Field and Description |
|---|---|
private List<SqlCall> |
AggFinder.AggIterable.calls |
| Modifier and Type | Method and Description |
|---|---|
SqlCall |
AggFinder.findAgg(List<SqlNode> nodes) |
SqlCall |
AggFinder.findAgg(SqlNode node)
Finds an aggregate.
|
| Modifier and Type | Method and Description |
|---|---|
(package private) Iterable<SqlCall> |
AggFinder.findAll(Iterable<SqlNode> nodes)
Creates a copy of this finder that has the same parameters as this,
then returns the list of all aggregates found.
|
Iterator<SqlCall> |
AggFinder.AggIterable.iterator() |
| Modifier and Type | Method and Description |
|---|---|
protected SetopNamespace |
SqlValidatorImpl.createSetopNamespace(SqlCall call,
SqlNode enclosingNode)
Creates a namespace for a set operation (
UNION,
INTERSECT, or EXCEPT). |
RelDataType |
SqlValidator.deriveConstructorType(SqlValidatorScope scope,
SqlCall call,
SqlFunction unresolvedConstructor,
SqlFunction resolvedConstructor,
List<RelDataType> argTypes)
Derives the type of a constructor.
|
RelDataType |
SqlValidatorImpl.deriveConstructorType(SqlValidatorScope scope,
SqlCall call,
SqlFunction unresolvedConstructor,
SqlFunction resolvedConstructor,
List<RelDataType> argTypes) |
protected abstract Void |
AggVisitor.found(SqlCall call) |
protected Void |
AggFinder.found(SqlCall call) |
protected Void |
AggFinder.AggIterable.found(SqlCall call) |
SqlValidatorScope |
SqlValidatorScope.getOperandScope(SqlCall call)
Returns the scope within which operands to a call are to be validated.
|
SqlValidatorScope |
ParameterScope.getOperandScope(SqlCall call) |
SqlValidatorScope |
AggregatingSelectScope.getOperandScope(SqlCall call) |
SqlValidatorScope |
EmptyScope.getOperandScope(SqlCall call) |
SqlValidatorScope |
DelegatingScope.getOperandScope(SqlCall call) |
(package private) RelDataType |
SqlValidatorImpl.getTableConstructorRowType(SqlCall values,
SqlValidatorScope scope)
Returns null if there is no common type.
|
CalciteException |
SqlValidator.handleUnresolvedFunction(SqlCall call,
SqlFunction unresolvedFunction,
List<RelDataType> argTypes,
List<String> argNames)
Handles a call to a function which cannot be resolved.
|
CalciteException |
SqlValidatorImpl.handleUnresolvedFunction(SqlCall call,
SqlFunction unresolvedFunction,
List<RelDataType> argTypes,
List<String> argNames) |
private boolean |
SqlValidatorImpl.isRolledUpColumnAllowedInAgg(SqlIdentifier identifier,
SqlValidatorScope scope,
SqlCall aggCall,
SqlNode parent) |
private void |
SqlValidatorImpl.registerOperandSubQueries(SqlValidatorScope parentScope,
SqlCall call,
int operandOrdinal)
Registers any sub-queries inside a given call operand, and converts the
operand to a scalar sub-query if the operator requires it.
|
void |
SqlValidator.validateAggregateParams(SqlCall aggCall,
SqlNode filter,
SqlValidatorScope scope)
Validates parameters for aggregate function.
|
void |
SqlValidatorImpl.validateAggregateParams(SqlCall aggCall,
SqlNode filter,
SqlValidatorScope scope) |
void |
SqlValidator.validateCall(SqlCall call,
SqlValidatorScope scope)
Validates a call to an operator.
|
void |
SqlValidatorImpl.validateCall(SqlCall call,
SqlValidatorScope scope) |
private void |
SqlValidatorImpl.validateGroupingSets(SqlValidatorScope groupScope,
AggregatingSelectScope aggregatingScope,
SqlCall groupItem) |
void |
SqlValidator.validateMatchRecognize(SqlCall pattern)
Validates a MATCH_RECOGNIZE clause.
|
void |
SqlValidatorImpl.validateMatchRecognize(SqlCall call) |
protected void |
SqlValidatorImpl.validateOver(SqlCall call,
SqlValidatorScope scope) |
protected void |
SqlValidatorImpl.validateValues(SqlCall node,
RelDataType targetRowType,
SqlValidatorScope scope)
Validates a VALUES clause.
|
void |
SqlValidator.validateWindow(SqlNode windowOrId,
SqlValidatorScope scope,
SqlCall call)
Validates the right-hand side of an OVER expression.
|
void |
SqlValidatorImpl.validateWindow(SqlNode windowOrId,
SqlValidatorScope scope,
SqlCall call) |
Void |
AggVisitor.visit(SqlCall call) |
Void |
AggChecker.visit(SqlCall call) |
SqlNode |
SqlScopedShuttle.visit(SqlCall call) |
Void |
SqlValidatorImpl.PatternVarVisitor.visit(SqlCall call) |
RelDataType |
SqlValidatorImpl.DeriveTypeVisitor.visit(SqlCall call) |
SqlNode |
SqlValidatorImpl.NavigationExpander.visit(SqlCall call) |
SqlNode |
SqlValidatorImpl.NavigationReplacer.visit(SqlCall call) |
Set<String> |
SqlValidatorImpl.PatternValidator.visit(SqlCall call) |
protected SqlNode |
SqlValidatorUtil.DeepCopier.visitScoped(SqlCall call)
Deprecated.
|
protected SqlNode |
SqlScopedShuttle.visitScoped(SqlCall call)
Visits an operator call.
|
protected SqlNode |
SqlValidatorImpl.Expander.visitScoped(SqlCall call) |
protected SqlNode |
SqlValidatorImpl.OrderExpressionExpander.visitScoped(SqlCall call) |
| Constructor and Description |
|---|
AliasNamespace(SqlValidatorImpl validator,
SqlCall call,
SqlNode enclosingNode)
Creates an AliasNamespace.
|
CollectNamespace(SqlCall child,
SqlValidatorScope scope,
SqlNode enclosingNode)
Creates a CollectNamespace.
|
CollectScope(SqlValidatorScope parent,
SqlValidatorScope usingScope,
SqlCall child) |
OverScope(SqlValidatorScope parent,
SqlCall overCall)
Creates a scope corresponding to a SELECT clause.
|
ProcedureNamespace(SqlValidatorImpl validator,
SqlValidatorScope scope,
SqlCall call,
SqlNode enclosingNode) |
SetopNamespace(SqlValidatorImpl validator,
SqlCall call,
SqlNode enclosingNode)
Creates a
SetopNamespace. |
TableConstructorNamespace(SqlValidatorImpl validator,
SqlCall values,
SqlValidatorScope scope,
SqlNode enclosingNode)
Creates a TableConstructorNamespace.
|
UnnestNamespace(SqlValidatorImpl validator,
SqlCall unnest,
SqlValidatorScope scope,
SqlNode enclosingNode) |
| Modifier and Type | Method and Description |
|---|---|
private SqlCall |
StandardConvertletTable.plus(SqlParserPos pos,
SqlNode a0,
SqlNode a1) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
SqlToRelConverter.afterTableFunction(SqlToRelConverter.Blackboard bb,
SqlCall call,
LogicalTableFunctionScan callRel) |
private boolean |
SqlToRelConverter.all(SqlCall call) |
RexNode |
StandardConvertletTable.castToValidatedType(SqlRexContext cx,
SqlCall call,
RexNode value)
Casts a RexNode value to the validated type of a SqlCall.
|
RexNode |
StandardConvertletTable.convertAggregateFunction(SqlRexContext cx,
SqlAggFunction fun,
SqlCall call) |
RexNode |
StandardConvertletTable.convertArray(SqlRexContext cx,
SqlArrayValueConstructor op,
SqlCall call) |
RexNode |
StandardConvertletTable.convertBetween(SqlRexContext cx,
SqlBetweenOperator op,
SqlCall call)
Converts a BETWEEN expression.
|
RexNode |
SqlNodeToRexConverterImpl.convertCall(SqlRexContext cx,
SqlCall call) |
RexNode |
SqlNodeToRexConverter.convertCall(SqlRexContext cx,
SqlCall call)
|
RexNode |
StandardConvertletTable.convertCall(SqlRexContext cx,
SqlCall call)
Converts a call to an operator into a
RexCall to the same
operator. |
RexNode |
StandardConvertletTable.AvgVarianceConvertlet.convertCall(SqlRexContext cx,
SqlCall call) |
RexNode |
StandardConvertletTable.TrimConvertlet.convertCall(SqlRexContext cx,
SqlCall call) |
RexNode |
StandardConvertletTable.GreatestConvertlet.convertCall(SqlRexContext cx,
SqlCall call) |
RexNode |
StandardConvertletTable.FloorCeilConvertlet.convertCall(SqlRexContext cx,
SqlCall call) |
RexNode |
StandardConvertletTable.TimestampAddConvertlet.convertCall(SqlRexContext cx,
SqlCall call) |
RexNode |
StandardConvertletTable.TimestampDiffConvertlet.convertCall(SqlRexContext cx,
SqlCall call) |
RexNode |
SqlRexConvertlet.convertCall(SqlRexContext cx,
SqlCall call) |
private RexNode |
StandardConvertletTable.convertCall(SqlRexContext cx,
SqlCall call,
SqlOperator op)
|
protected RexNode |
StandardConvertletTable.convertCast(SqlRexContext cx,
SqlCall call) |
protected void |
SqlToRelConverter.convertCollectionTable(SqlToRelConverter.Blackboard bb,
SqlCall call) |
RexNode |
StandardConvertletTable.convertDatetimeMinus(SqlRexContext cx,
SqlDatetimeSubtractionOperator op,
SqlCall call) |
RexNode |
StandardConvertletTable.convertExtract(SqlRexContext cx,
SqlExtractFunction op,
SqlCall call)
Converts a call to the
EXTRACT function. |
protected RexNode |
StandardConvertletTable.convertFloorCeil(SqlRexContext cx,
SqlCall call) |
RexNode |
StandardConvertletTable.convertFunction(SqlRexContext cx,
SqlFunction fun,
SqlCall call) |
private RexNode |
StandardConvertletTable.convertIsDistinctFrom(SqlRexContext cx,
SqlCall call,
boolean neg) |
RexNode |
StandardConvertletTable.convertJdbc(SqlRexContext cx,
SqlJdbcFunctionCall op,
SqlCall call) |
RexNode |
StandardConvertletTable.convertLiteralChain(SqlRexContext cx,
SqlLiteralChainOperator op,
SqlCall call)
Converts a LiteralChain expression: that is, concatenates the operands
immediately, to produce a single literal string.
|
RexNode |
StandardConvertletTable.convertMap(SqlRexContext cx,
SqlMapValueConstructor op,
SqlCall call) |
protected void |
SqlToRelConverter.convertMatchRecognize(SqlToRelConverter.Blackboard bb,
SqlCall call) |
RexNode |
StandardConvertletTable.convertMultiset(SqlRexContext cx,
SqlMultisetValueConstructor op,
SqlCall call) |
RexNode |
StandardConvertletTable.convertMultisetQuery(SqlRexContext cx,
SqlMultisetQueryConstructor op,
SqlCall call) |
RexNode |
StandardConvertletTable.convertOverlaps(SqlRexContext cx,
SqlOverlapsOperator op,
SqlCall call)
Converts a call to OVERLAPS.
|
private RexNode |
StandardConvertletTable.convertPlus(SqlRexContext cx,
SqlCall call) |
RexNode |
StandardConvertletTable.convertRow(SqlRexContext cx,
SqlRowOperator op,
SqlCall call)
Converts a ROW.
|
private RelNode |
SqlToRelConverter.convertRowConstructor(SqlToRelConverter.Blackboard bb,
SqlCall rowConstructor)
Converts a row constructor into a relational expression.
|
RexNode |
StandardConvertletTable.convertSequenceValue(SqlRexContext cx,
SqlSequenceValueOperator fun,
SqlCall call) |
protected RelNode |
SqlToRelConverter.convertSetOp(SqlCall call)
Converts a set operation (UNION, INTERSECT, MINUS) into relational
expressions.
|
RexNode |
SqlToRelConverter.NoOpSubQueryConverter.convertSubQuery(SqlCall subQuery,
SqlToRelConverter parentConverter,
boolean isExists,
boolean isExplain) |
RexNode |
SubQueryConverter.convertSubQuery(SqlCall subQuery,
SqlToRelConverter parentConverter,
boolean isExists,
boolean isExplain)
Converts the sub-query to an equivalent expression.
|
RelNode |
SqlToRelConverter.convertValues(SqlCall values,
RelDataType targetRowType)
Converts a SELECT statement's parse tree into a relational expression.
|
private void |
SqlToRelConverter.convertValuesImpl(SqlToRelConverter.Blackboard bb,
SqlCall values,
RelDataType targetRowType)
Converts a values clause (as in "INSERT INTO T(x,y) VALUES (1,2)") into a
relational expression.
|
SqlRexConvertlet |
ReflectiveConvertletTable.get(SqlCall call) |
SqlRexConvertlet |
SqlRexConvertletTable.get(SqlCall call)
Returns the convertlet applicable to a given expression.
|
RexRangeRef |
SqlRexContext.getSubQueryExpr(SqlCall call)
Returns the expression used to access a given IN or EXISTS
sub-query. |
RexRangeRef |
SqlToRelConverter.Blackboard.getSubQueryExpr(SqlCall call) |
RexNode |
SqlToRelConverter.AggConverter.lookupAggregates(SqlCall call) |
private void |
SqlToRelConverter.AggConverter.translateAgg(SqlCall call,
SqlNode filter,
SqlCall outerCall) |
RexNode |
SqlToRelConverter.Blackboard.visit(SqlCall call) |
Void |
SqlToRelConverter.AggConverter.visit(SqlCall call) |
Void |
SqlToRelConverter.AggregateFinder.visit(SqlCall call) |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
Util.isSingleValue(SqlCall call)
Does nothing with its argument.
|
Void |
Util.OverFinder.visit(SqlCall call) |
Copyright © 2012–2018 The Apache Software Foundation. All rights reserved.