| Package | Description |
|---|---|
| org.apache.calcite.adapter.jdbc |
Query provider based on a JDBC data source.
|
| 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.parser.impl |
Contains generated code for the
Calcite 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 |
|---|---|
void |
JdbcImplementor.Builder.setGroupBy(SqlNodeList nodeList) |
void |
JdbcImplementor.Builder.setOrderBy(SqlNodeList nodeList) |
void |
JdbcImplementor.Builder.setSelect(SqlNodeList nodeList) |
| Modifier and Type | Field and Description |
|---|---|
SqlNodeList |
SqlWithItem.columnList |
static SqlNodeList |
SqlNodeList.EMPTY
An immutable, empty SqlNodeList.
|
SqlNodeList |
SqlOrderBy.orderList |
SqlNodeList |
SqlWith.withList |
| Modifier and Type | Method and Description |
|---|---|
SqlNodeList |
SqlNodeList.clone(SqlParserPos pos) |
SqlNodeList |
SqlSelect.getGroup() |
SqlNodeList |
SqlSelect.getOrderList() |
SqlNodeList |
SqlWindow.getOrderList() |
SqlNodeList |
SqlWindow.getPartitionList() |
SqlNodeList |
SqlSelect.getSelectList() |
SqlNodeList |
SqlUpdate.getSourceExpressionList() |
SqlNodeList |
SqlInsert.getTargetColumnList() |
SqlNodeList |
SqlUpdate.getTargetColumnList() |
SqlNodeList |
SqlSelect.getWindowList() |
static SqlNodeList |
SqlUtil.toNodeList(SqlNode[] operands)
Converts an SqlNode array to a SqlNodeList
|
| 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 |
SqlSelect.setSelectList(SqlNodeList selectList) |
| Constructor and Description |
|---|
SqlInsert(SqlParserPos pos,
SqlNodeList keywords,
SqlNode targetTable,
SqlNode source,
SqlNodeList columnList) |
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 | 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 |
|---|---|
SqlNodeList |
SqlParserImpl.ExpressionCommaList(SqlParserPos pos,
SqlAbstractParserImpl.ExprContext exprContext)
Parses a list of expressions separated by commas.
|
SqlNodeList |
SqlParserImpl.ExtendList() |
SqlNodeList |
SqlParserImpl.GroupByOpt()
Parses the optional GROUP BY clause for SELECT.
|
SqlNodeList |
SqlParserImpl.OrderBy(boolean accept)
Parses an ORDER BY clause.
|
SqlNodeList |
SqlParserImpl.ParenthesizedQueryOrCommaList(SqlAbstractParserImpl.ExprContext exprContext)
Parses a parenthesized query or comma-list of row expressions.
|
SqlNodeList |
SqlParserImpl.ParenthesizedSimpleIdentifierList()
List of simple identifiers in parentheses.
|
SqlNodeList |
SqlParserImpl.RowConstructorList(SqlParserPos pos)
Parses one or more rows in a VALUES expression.
|
SqlNodeList |
SqlParserImpl.SimpleIdentifierCommaList()
Parses a comma-separated list of simple identifiers.
|
SqlNodeList |
SqlParserImpl.WindowOpt()
Parses the optional WINDOW clause for SELECT
|
SqlNodeList |
SqlParserImpl.WithList() |
| Modifier and Type | Method and Description |
|---|---|
R |
SqlVisitor.visit(SqlNodeList nodeList)
Visits a list of
SqlNode objects. |
SqlNode |
SqlShuttle.visit(SqlNodeList nodeList) |
R |
SqlBasicVisitor.visit(SqlNodeList nodeList) |
| Modifier and Type | Method and Description |
|---|---|
static SqlNodeList |
SqlValidatorUtil.DeepCopier.copy(SqlValidatorScope scope,
SqlNodeList list)
Copies a list of nodes.
|
SqlNodeList |
SqlValidatorImpl.expandStar(SqlNodeList selectList,
SqlSelect select,
boolean includeSystemVars) |
SqlNodeList |
SqlValidator.expandStar(SqlNodeList selectList,
SqlSelect query,
boolean includeSystemVars)
Returns a list of expressions, with every occurrence of "*" or
"TABLE.*" expanded.
|
SqlNodeList |
SqlValidatorScope.getOrderList()
Returns the expressions by which the rows in this scope are sorted.
|
SqlNodeList |
DelegatingScope.getOrderList() |
SqlNodeList |
SelectScope.getOrderList() |
| Modifier and Type | Method and Description |
|---|---|
protected static Pair<SqlIdentifier,SqlNodeList> |
IdentifierNamespace.split(SqlNode node) |
| Modifier and Type | Method and Description |
|---|---|
static SqlNodeList |
SqlValidatorUtil.DeepCopier.copy(SqlValidatorScope scope,
SqlNodeList list)
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 |
SqlValidatorImpl.expandStar(SqlNodeList selectList,
SqlSelect select,
boolean includeSystemVars) |
SqlNodeList |
SqlValidator.expandStar(SqlNodeList selectList,
SqlSelect query,
boolean includeSystemVars)
Returns a list of expressions, with every occurrence of "*" or
"TABLE.*" expanded.
|
protected RelDataType |
SqlValidatorImpl.validateSelectList(SqlNodeList selectItems,
SqlSelect select,
RelDataType targetRowType) |
SqlNode |
SqlValidatorUtil.DeepCopier.visit(SqlNodeList list) |
| Modifier and Type | Method and Description |
|---|---|
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–2015 The Apache Software Foundation. All rights reserved.