Uses of Class
org.apache.calcite.sql.SqlNodeList
-
Packages that use SqlNodeList 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.ddl Parse tree for SQL DDL statements.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. -
-
Uses of SqlNodeList in org.apache.calcite.rel.rel2sql
Methods in org.apache.calcite.rel.rel2sql that return SqlNodeList Modifier and Type Method Description private SqlNodeList
RelToSqlConverter. exprList(SqlImplementor.Context context, java.util.List<? extends RexNode> exprs)
private SqlNodeList
RelToSqlConverter. identifierList(java.util.List<java.lang.String> names)
Converts a list of names expressions to a list of single-partSqlIdentifier
s.Methods in org.apache.calcite.rel.rel2sql with parameters of type SqlNodeList Modifier and Type Method Description void
SqlImplementor.Builder. setGroupBy(SqlNodeList nodeList)
void
SqlImplementor.Builder. setOrderBy(SqlNodeList nodeList)
void
SqlImplementor.Builder. setSelect(SqlNodeList nodeList)
private SqlNode
SqlImplementor.Context. withOrder(SqlCall call, SqlNodeList orderList)
Wraps a call in aSqlKind.WITHIN_GROUP
call, iforderList
is non-empty. -
Uses of SqlNodeList in org.apache.calcite.sql
Fields in org.apache.calcite.sql declared as SqlNodeList Modifier and Type Field 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
private SqlNodeList
SqlMatchRecognize. orderList
SqlNodeList
SqlOrderBy. orderList
(package private) SqlNodeList
SqlWindow. orderList
The list of ordering columns.private SqlNodeList
SqlMatchRecognize. partitionList
(package private) SqlNodeList
SqlWindow. partitionList
The list of partitioning columns.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
Methods in org.apache.calcite.sql with parameters of type SqlNodeList Modifier and Type Method 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 aSqlNodeList
.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 theSELECT
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)
java.lang.Void
SqlUtil.Genealogist. visit(SqlNodeList nodeList)
Constructors in org.apache.calcite.sql with parameters of type SqlNodeList Constructor 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)
-
Uses of SqlNodeList in org.apache.calcite.sql.ddl
Fields in org.apache.calcite.sql.ddl declared as SqlNodeList Modifier and Type Field Description private SqlNodeList
SqlCreateType. attributeDefs
private SqlNodeList
SqlCreateMaterializedView. columnList
private SqlNodeList
SqlCreateTable. columnList
private SqlNodeList
SqlCreateView. columnList
private SqlNodeList
SqlKeyConstraint. columnList
private SqlNodeList
SqlCreateForeignSchema. optionList
private SqlNodeList
SqlCreateFunction. usingList
Methods in org.apache.calcite.sql.ddl with parameters of type SqlNodeList Modifier and Type Method Description static SqlCreateForeignSchema
SqlDdlNodes. createForeignSchema(SqlParserPos pos, boolean replace, boolean ifNotExists, SqlIdentifier name, SqlNode type, SqlNode library, SqlNodeList optionList)
Creates a CREATE FOREIGN SCHEMA.static SqlCreateFunction
SqlDdlNodes. createFunction(SqlParserPos pos, boolean replace, boolean ifNotExists, SqlIdentifier name, SqlNode className, SqlNodeList usingList)
Creates a CREATE FUNCTION.static SqlCreateMaterializedView
SqlDdlNodes. createMaterializedView(SqlParserPos pos, boolean replace, boolean ifNotExists, SqlIdentifier name, SqlNodeList columnList, SqlNode query)
Creates a CREATE MATERIALIZED VIEW.static SqlCreateTable
SqlDdlNodes. createTable(SqlParserPos pos, boolean replace, boolean ifNotExists, SqlIdentifier name, SqlNodeList columnList, SqlNode query)
Creates a CREATE TABLE.static SqlCreateType
SqlDdlNodes. createType(SqlParserPos pos, boolean replace, SqlIdentifier name, SqlNodeList attributeList, SqlDataTypeSpec dataTypeSpec)
Creates a CREATE TYPE.static SqlCreateView
SqlDdlNodes. createView(SqlParserPos pos, boolean replace, SqlIdentifier name, SqlNodeList columnList, SqlNode query)
Creates a CREATE VIEW.private static java.util.List<Pair<SqlIdentifier,SqlNode>>
SqlCreateForeignSchema. options(SqlNodeList optionList)
static SqlKeyConstraint
SqlDdlNodes. primary(SqlParserPos pos, SqlIdentifier name, SqlNodeList columnList)
Creates a PRIMARY KEY constraint.static SqlKeyConstraint
SqlKeyConstraint. primary(SqlParserPos pos, SqlIdentifier name, SqlNodeList columnList)
Creates a PRIMARY KEY constraint.(package private) static SqlNode
SqlDdlNodes. renameColumns(SqlNodeList columnList, SqlNode query)
Wraps a query to rename its columns.static SqlKeyConstraint
SqlDdlNodes. unique(SqlParserPos pos, SqlIdentifier name, SqlNodeList columnList)
Creates a UNIQUE constraint.static SqlKeyConstraint
SqlKeyConstraint. unique(SqlParserPos pos, SqlIdentifier name, SqlNodeList columnList)
Creates a UNIQUE constraint.Constructors in org.apache.calcite.sql.ddl with parameters of type SqlNodeList Constructor Description SqlCreateForeignSchema(SqlParserPos pos, boolean replace, boolean ifNotExists, SqlIdentifier name, SqlNode type, SqlNode library, SqlNodeList optionList)
Creates a SqlCreateForeignSchema.SqlCreateFunction(SqlParserPos pos, boolean replace, boolean ifNotExists, SqlIdentifier name, SqlNode className, SqlNodeList usingList)
Creates a SqlCreateFunction.SqlCreateMaterializedView(SqlParserPos pos, boolean replace, boolean ifNotExists, SqlIdentifier name, SqlNodeList columnList, SqlNode query)
Creates a SqlCreateView.SqlCreateTable(SqlParserPos pos, boolean replace, boolean ifNotExists, SqlIdentifier name, SqlNodeList columnList, SqlNode query)
Creates a SqlCreateTable.SqlCreateType(SqlParserPos pos, boolean replace, SqlIdentifier name, SqlNodeList attributeDefs, SqlDataTypeSpec dataType)
Creates a SqlCreateType.SqlCreateView(SqlParserPos pos, boolean replace, SqlIdentifier name, SqlNodeList columnList, SqlNode query)
Creates a SqlCreateView.SqlKeyConstraint(SqlParserPos pos, SqlIdentifier name, SqlNodeList columnList)
Creates a SqlKeyConstraint. -
Uses of SqlNodeList in org.apache.calcite.sql.fun
Fields in org.apache.calcite.sql.fun declared as SqlNodeList Modifier and Type Field Description (package private) SqlNodeList
SqlCase. thenList
(package private) SqlNodeList
SqlCase. whenList
Methods in org.apache.calcite.sql.fun that return SqlNodeList Modifier and Type Method Description SqlNodeList
SqlCase. getThenOperands()
SqlNodeList
SqlCase. getWhenOperands()
Methods in org.apache.calcite.sql.fun with parameters of type SqlNodeList Modifier and Type Method 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
WHEN whenList[0] THEN thenList[0]
WHEN whenList[1] THEN thenList[1]
...
ELSE elseClause
ENDConstructors in org.apache.calcite.sql.fun with parameters of type SqlNodeList Constructor Description SqlCase(SqlParserPos pos, SqlNode value, SqlNodeList whenList, SqlNodeList thenList, SqlNode elseExpr)
Creates a SqlCase expression. -
Uses of SqlNodeList in org.apache.calcite.sql.parser
Methods in org.apache.calcite.sql.parser with parameters of type SqlNodeList Modifier and Type Method Description static SqlNode[]
SqlParserUtil. toNodeArray(SqlNodeList list)
-
Uses of SqlNodeList in org.apache.calcite.sql.util
Methods in org.apache.calcite.sql.util with parameters of type SqlNodeList Modifier and Type Method Description R
SqlBasicVisitor. visit(SqlNodeList nodeList)
SqlNode
SqlShuttle. visit(SqlNodeList nodeList)
R
SqlVisitor. visit(SqlNodeList nodeList)
Visits a list ofSqlNode
objects. -
Uses of SqlNodeList in org.apache.calcite.sql.validate
Fields in org.apache.calcite.sql.validate declared as SqlNodeList Modifier and Type Field Description SqlNodeList
IdentifierNamespace. extendList
private SqlNodeList
GroupByScope. groupByList
private SqlNodeList
OrderByScope. orderList
private SqlNodeList
SelectScope. orderList
List of column names which sort this scope.Methods in org.apache.calcite.sql.validate that return SqlNodeList Modifier and Type Method 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
DelegatingScope. getOrderList()
SqlNodeList
EmptyScope. getOrderList()
SqlNodeList
SelectScope. getOrderList()
SqlNodeList
SqlValidatorScope. getOrderList()
Returns the expressions by which the rows in this scope are sorted.Methods in org.apache.calcite.sql.validate that return types with arguments of type SqlNodeList Modifier and Type Method Description protected static Pair<SqlIdentifier,SqlNodeList>
IdentifierNamespace. split(SqlNode node)
Methods in org.apache.calcite.sql.validate with parameters of type SqlNodeList Modifier and Type Method 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 java.util.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 java.util.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, boolean register, SqlNode node, SqlNode enclosingNode, java.lang.String alias, SqlNodeList extendList, boolean forceNullable, boolean lateral)
Registers scopes and namespaces implied a relational expression in the FROM clause.void
SqlValidator. validateAggregateParams(SqlCall aggCall, SqlNode filter, SqlNodeList orderList, SqlValidatorScope scope)
Validates parameters for aggregate function.void
SqlValidatorImpl. validateAggregateParams(SqlCall aggCall, SqlNode filter, SqlNodeList orderList, SqlValidatorScope scope)
protected RelDataType
SqlValidatorImpl. validateSelectList(SqlNodeList selectItems, SqlSelect select, RelDataType targetRowType)
RelDataType
SqlValidatorImpl.DeriveTypeVisitor. visit(SqlNodeList nodeList)
java.lang.Void
SqlValidatorImpl.PatternVarVisitor. visit(SqlNodeList nodeList)
SqlNode
SqlValidatorUtil.DeepCopier. visit(SqlNodeList list)
Deprecated.Constructors in org.apache.calcite.sql.validate with parameters of type SqlNodeList Constructor 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)
-
Uses of SqlNodeList in org.apache.calcite.sql2rel
Fields in org.apache.calcite.sql2rel declared as SqlNodeList Modifier and Type Field Description (package private) SqlNodeList
SqlToRelConverter.AggregateFinder. filterList
private SqlNodeList
SqlToRelConverter.AggConverter. groupExprs
The group-by expressions, inSqlNode
format.(package private) SqlNodeList
SqlToRelConverter.AggregateFinder. list
(package private) SqlNodeList
SqlToRelConverter.AggregateFinder. orderList
Methods in org.apache.calcite.sql2rel with parameters of type SqlNodeList Modifier and Type Method 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, java.util.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, java.util.List<SqlNode> orderExprList)
protected void
SqlToRelConverter. gatherOrderExprs(SqlToRelConverter.Blackboard bb, SqlSelect select, SqlNodeList orderList, java.util.List<SqlNode> extraOrderExprs, java.util.List<RelFieldCollation> collationList)
Creates a list of collations required to implement the ORDER BY clause, if there is one.private void
SqlToRelConverter.AggConverter. translateAgg(SqlCall call, SqlNode filter, SqlNodeList orderList, SqlCall outerCall)
java.lang.Void
SqlToRelConverter.AggConverter. visit(SqlNodeList nodeList)
RexNode
SqlToRelConverter.Blackboard. visit(SqlNodeList nodeList)
-