| Package | Description |
|---|---|
| org.apache.calcite.rel.rel2sql |
Translates a relational expression to SQL parse tree.
|
| org.apache.calcite.sql |
Provides a SQL parser and object model.
|
| 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.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.
|
| Modifier and Type | Method and Description |
|---|---|
private SqlNodeList |
RelToSqlConverter.exprList(SqlImplementor.Context context,
List<? extends RexNode> exprs)
|
private SqlNodeList |
RelToSqlConverter.identifierList(List<String> names)
Converts a list of names expressions to a list of single-part
SqlIdentifiers. |
| Modifier and Type | Method and Description |
|---|---|
void |
SqlImplementor.Builder.setGroupBy(SqlNodeList nodeList) |
void |
SqlImplementor.Builder.setOrderBy(SqlNodeList nodeList) |
void |
SqlImplementor.Builder.setSelect(SqlNodeList nodeList) |
| Modifier and Type | Field and Description |
|---|---|
(package private) SqlNodeList |
SqlInsert.columnList |
SqlNodeList |
SqlWithItem.columnList |
static SqlNodeList |
SqlNodeList.EMPTY
An immutable, empty SqlNodeList.
|
(package private) SqlNodeList |
SqlSelect.groupBy |
(package private) SqlNodeList |
SqlSelect.keywordList |
(package private) SqlNodeList |
SqlInsert.keywords |
private SqlNodeList |
SqlMatchRecognize.measureList |
(package private) SqlNodeList |
SqlSelect.orderBy |
SqlNodeList |
SqlOrderBy.orderList |
(package private) SqlNodeList |
SqlWindow.orderList
The list of ordering columns.
|
private SqlNodeList |
SqlMatchRecognize.orderList |
(package private) SqlNodeList |
SqlWindow.partitionList
The list of partitioning columns.
|
private SqlNodeList |
SqlMatchRecognize.partitionList |
private SqlNodeList |
SqlMatchRecognize.patternDefList |
(package private) SqlNodeList |
SqlSelect.selectList |
(package private) SqlNodeList |
SqlUpdate.sourceExpressionList |
private SqlNodeList |
SqlMatchRecognize.subsetList |
(package private) SqlNodeList |
SqlUpdate.targetColumnList |
(package private) SqlNodeList |
SqlSelect.windowDecls |
SqlNodeList |
SqlWith.withList |
| Modifier and Type | Method and Description |
|---|---|
static SqlWindow |
SqlWindow.create(SqlIdentifier declName,
SqlIdentifier refName,
SqlNodeList partitionList,
SqlNodeList orderList,
SqlLiteral isRows,
SqlNode lowerBound,
SqlNode upperBound,
SqlLiteral allowPartial,
SqlParserPos pos) |
SqlCall |
SqlOperator.createCall(SqlNodeList nodeList)
Creates a call to this operand with a list of operands contained in a
SqlNodeList. |
SqlSelect |
SqlSelectOperator.createCall(SqlNodeList keywordList,
SqlNodeList selectList,
SqlNode fromClause,
SqlNode whereClause,
SqlNodeList groupBy,
SqlNode having,
SqlNodeList windowDecls,
SqlNodeList orderBy,
SqlNode offset,
SqlNode fetch,
SqlParserPos pos)
Creates a call to the
SELECT operator. |
void |
SqlSelect.setGroupBy(SqlNodeList groupBy) |
void |
SqlSelect.setOrderBy(SqlNodeList orderBy) |
void |
SqlWindow.setOrderList(SqlNodeList orderList) |
void |
SqlWindow.setPartitionList(SqlNodeList partitionList) |
void |
SqlSelect.setSelectList(SqlNodeList selectList) |
Void |
SqlUtil.Genealogist.visit(SqlNodeList nodeList) |
| Constructor and Description |
|---|
SqlInsert(SqlParserPos pos,
SqlNodeList keywords,
SqlNode targetTable,
SqlNode source,
SqlNodeList columnList) |
SqlMatchRecognize(SqlParserPos pos,
SqlNode tableRef,
SqlNode pattern,
SqlLiteral strictStart,
SqlLiteral strictEnd,
SqlNodeList patternDefList,
SqlNodeList measureList,
SqlNode after,
SqlNodeList subsetList,
SqlLiteral rowsPerMatch,
SqlNodeList partitionList,
SqlNodeList orderList,
SqlLiteral interval)
Creates a SqlMatchRecognize.
|
SqlOrderBy(SqlParserPos pos,
SqlNode query,
SqlNodeList orderList,
SqlNode offset,
SqlNode fetch) |
SqlSelect(SqlParserPos pos,
SqlNodeList keywordList,
SqlNodeList selectList,
SqlNode from,
SqlNode where,
SqlNodeList groupBy,
SqlNode having,
SqlNodeList windowDecls,
SqlNodeList orderBy,
SqlNode offset,
SqlNode fetch) |
SqlUpdate(SqlParserPos pos,
SqlNode targetTable,
SqlNodeList targetColumnList,
SqlNodeList sourceExpressionList,
SqlNode condition,
SqlSelect sourceSelect,
SqlIdentifier alias) |
SqlWindow(SqlParserPos pos,
SqlIdentifier declName,
SqlIdentifier refName,
SqlNodeList partitionList,
SqlNodeList orderList,
SqlLiteral isRows,
SqlNode lowerBound,
SqlNode upperBound,
SqlLiteral allowPartial)
Creates a window.
|
SqlWith(SqlParserPos pos,
SqlNodeList withList,
SqlNode body) |
SqlWithItem(SqlParserPos pos,
SqlIdentifier name,
SqlNodeList columnList,
SqlNode query) |
| Modifier and Type | Field and Description |
|---|---|
(package private) SqlNodeList |
SqlCase.thenList |
(package private) SqlNodeList |
SqlCase.whenList |
| Modifier and Type | Method and Description |
|---|---|
SqlNodeList |
SqlCase.getThenOperands() |
SqlNodeList |
SqlCase.getWhenOperands() |
| Modifier and Type | Method and Description |
|---|---|
static SqlCase |
SqlCase.createSwitched(SqlParserPos pos,
SqlNode value,
SqlNodeList whenList,
SqlNodeList thenList,
SqlNode elseClause)
Creates a call to the switched form of the case operator, viz:
CASE value |
| Constructor and Description |
|---|
SqlCase(SqlParserPos pos,
SqlNode value,
SqlNodeList whenList,
SqlNodeList thenList,
SqlNode elseExpr)
Creates a SqlCase expression.
|
| Modifier and Type | Method and Description |
|---|---|
static SqlNode[] |
SqlParserUtil.toNodeArray(SqlNodeList list) |
| Modifier and Type | Method and Description |
|---|---|
R |
SqlVisitor.visit(SqlNodeList nodeList)
Visits a list of
SqlNode objects. |
R |
SqlBasicVisitor.visit(SqlNodeList nodeList) |
SqlNode |
SqlShuttle.visit(SqlNodeList nodeList) |
| Modifier and Type | Field and Description |
|---|---|
SqlNodeList |
IdentifierNamespace.extendList |
private SqlNodeList |
GroupByScope.groupByList |
private SqlNodeList |
SelectScope.orderList
List of column names which sort this scope.
|
private SqlNodeList |
OrderByScope.orderList |
| Modifier and Type | Method and Description |
|---|---|
static SqlNodeList |
SqlValidatorUtil.DeepCopier.copy(SqlValidatorScope scope,
SqlNodeList list)
Deprecated.
Copies a list of nodes.
|
SqlNodeList |
SqlValidator.expandStar(SqlNodeList selectList,
SqlSelect query,
boolean includeSystemVars)
Returns a list of expressions, with every occurrence of "*" or
"TABLE.*" expanded.
|
SqlNodeList |
SqlValidatorImpl.expandStar(SqlNodeList selectList,
SqlSelect select,
boolean includeSystemVars) |
SqlNodeList |
SelectScope.getOrderList() |
SqlNodeList |
SqlValidatorScope.getOrderList()
Returns the expressions by which the rows in this scope are sorted.
|
SqlNodeList |
EmptyScope.getOrderList() |
SqlNodeList |
DelegatingScope.getOrderList() |
| Modifier and Type | Method and Description |
|---|---|
protected static Pair<SqlIdentifier,SqlNodeList> |
IdentifierNamespace.split(SqlNode node) |
| Modifier and Type | Method and Description |
|---|---|
private void |
TableNamespace.checkExtendedColumnTypes(SqlNodeList extendList)
Ensures that extended columns that have the same name as a base column also
have the same data-type.
|
(package private) static boolean |
SqlValidatorUtil.containsMonotonic(SelectScope scope,
SqlNodeList nodes)
Returns whether any of the given expressions are sorted.
|
static SqlNodeList |
SqlValidatorUtil.DeepCopier.copy(SqlValidatorScope scope,
SqlNodeList list)
Deprecated.
Copies a list of nodes.
|
protected RelDataType |
SqlValidatorImpl.createTargetRowType(SqlValidatorTable table,
SqlNodeList targetColumnList,
boolean append)
Derives a row-type for INSERT and UPDATE operations.
|
SqlNodeList |
SqlValidator.expandStar(SqlNodeList selectList,
SqlSelect query,
boolean includeSystemVars)
Returns a list of expressions, with every occurrence of "*" or
"TABLE.*" expanded.
|
SqlNodeList |
SqlValidatorImpl.expandStar(SqlNodeList selectList,
SqlSelect select,
boolean includeSystemVars) |
TableNamespace |
TableNamespace.extend(SqlNodeList extendList)
Creates a TableNamespace based on the same table as this one, but with
extended fields.
|
static List<RelDataTypeField> |
SqlValidatorUtil.getExtendedColumns(RelDataTypeFactory typeFactory,
SqlValidatorTable table,
SqlNodeList extendedColumns)
Gets a list of extended columns with field indices to the underlying table.
|
private boolean |
SqlValidatorImpl.hasSortedPrefix(SelectScope scope,
SqlNodeList orderList)
Returns whether the prefix is sorted.
|
private static List<Pair<SqlIdentifier,SqlDataTypeSpec>> |
SqlValidatorUtil.pairs(SqlNodeList extendedColumns)
Converts a list of extended columns
(of the form [name0, type0, name1, type1, ...])
into a list of (name, type) pairs.
|
private SqlNode |
SqlValidatorImpl.registerFrom(SqlValidatorScope parentScope,
SqlValidatorScope usingScope,
SqlNode node,
SqlNode enclosingNode,
String alias,
SqlNodeList extendList,
boolean forceNullable)
Registers scopes and namespaces implied a relational expression in the
FROM clause.
|
protected RelDataType |
SqlValidatorImpl.validateSelectList(SqlNodeList selectItems,
SqlSelect select,
RelDataType targetRowType) |
SqlNode |
SqlValidatorUtil.DeepCopier.visit(SqlNodeList list)
Deprecated.
|
Void |
SqlValidatorImpl.PatternVarVisitor.visit(SqlNodeList nodeList) |
RelDataType |
SqlValidatorImpl.DeriveTypeVisitor.visit(SqlNodeList nodeList) |
| Constructor and Description |
|---|
GroupByScope(SqlValidatorScope parent,
SqlNodeList groupByList,
SqlSelect select) |
IdentifierNamespace(SqlValidatorImpl validator,
SqlIdentifier id,
SqlNodeList extendList,
SqlNode enclosingNode,
SqlValidatorScope parentScope)
Creates an IdentifierNamespace.
|
OrderByScope(SqlValidatorScope parent,
SqlNodeList orderList,
SqlSelect select) |
| Modifier and Type | Field and Description |
|---|---|
(package private) SqlNodeList |
SqlToRelConverter.AggregateFinder.filterList |
private SqlNodeList |
SqlToRelConverter.AggConverter.groupExprs
The group-by expressions, in
SqlNode format. |
(package private) SqlNodeList |
SqlToRelConverter.AggregateFinder.list |
| Modifier and Type | Method and Description |
|---|---|
private static boolean |
SqlToRelConverter.containsNullLiteral(SqlNodeList valueList) |
private void |
SqlToRelConverter.convertIdentifier(SqlToRelConverter.Blackboard bb,
SqlIdentifier id,
SqlNodeList extendedColumns) |
private RexNode |
SqlToRelConverter.convertInToOr(SqlToRelConverter.Blackboard bb,
List<RexNode> leftKeys,
SqlNodeList valuesList,
SqlInOperator op)
Converts "x IN (1, 2, ...)" to "x=1 OR x=2 OR ...".
|
protected void |
SqlToRelConverter.createAggImpl(SqlToRelConverter.Blackboard bb,
SqlToRelConverter.AggConverter aggConverter,
SqlNodeList selectList,
SqlNodeList groupList,
SqlNode having,
List<SqlNode> orderExprList) |
protected void |
SqlToRelConverter.gatherOrderExprs(SqlToRelConverter.Blackboard bb,
SqlSelect select,
SqlNodeList orderList,
List<SqlNode> extraOrderExprs,
List<RelFieldCollation> collationList)
Creates a list of collations required to implement the ORDER BY clause,
if there is one.
|
RexNode |
SqlToRelConverter.Blackboard.visit(SqlNodeList nodeList) |
Void |
SqlToRelConverter.AggConverter.visit(SqlNodeList nodeList) |
Copyright © 2012–2018 The Apache Software Foundation. All rights reserved.