| 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.advise |
Provides hints and corrections for editing SQL statements.
|
| org.apache.calcite.sql.parser.impl |
Contains generated code for the
Calcite SQL parser. |
| 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 |
|---|---|
SqlSelect |
JdbcImplementor.Result.subSelect() |
| Constructor and Description |
|---|
JdbcImplementor.Builder(JdbcRel rel,
List<org.apache.calcite.adapter.jdbc.JdbcImplementor.Clause> clauses,
SqlSelect select,
JdbcImplementor.Context context) |
| Modifier and Type | Method and Description |
|---|---|
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. |
SqlSelect |
SqlMerge.getSourceSelect()
Gets the source SELECT expression for the data to be updated/inserted.
|
SqlSelect |
SqlDelete.getSourceSelect()
Gets the source SELECT expression for the data to be deleted.
|
SqlSelect |
SqlUpdate.getSourceSelect()
Gets the source SELECT expression for the data to be updated.
|
| Modifier and Type | Method and Description |
|---|---|
static SqlNode |
SqlUtil.getFromNode(SqlSelect query,
int ordinal)
Returns the
nth (0-based) input to a join expression. |
void |
SqlInsert.setSource(SqlSelect source) |
void |
SqlMerge.setSourceSelect(SqlSelect sourceSelect) |
void |
SqlDelete.setSourceSelect(SqlSelect sourceSelect) |
void |
SqlUpdate.setSourceSelect(SqlSelect sourceSelect) |
| Constructor and Description |
|---|
SqlDelete(SqlParserPos pos,
SqlNode targetTable,
SqlNode condition,
SqlSelect sourceSelect,
SqlIdentifier alias) |
SqlMerge(SqlParserPos pos,
SqlNode targetTable,
SqlNode condition,
SqlNode source,
SqlUpdate updateCall,
SqlInsert insertCall,
SqlSelect sourceSelect,
SqlIdentifier alias) |
SqlUpdate(SqlParserPos pos,
SqlNode targetTable,
SqlNodeList targetColumnList,
SqlNodeList sourceExpressionList,
SqlNode condition,
SqlSelect sourceSelect,
SqlIdentifier alias) |
| Modifier and Type | Method and Description |
|---|---|
SqlNode |
SqlAdvisorValidator.expandOrderExpr(SqlSelect select,
SqlNode orderExpr) |
protected void |
SqlAdvisorValidator.validateHavingClause(SqlSelect select)
Calls the parent class method and masks Farrago exception thrown.
|
boolean |
SqlAdvisorValidator.validateModality(SqlSelect select,
SqlModality modality,
boolean fail) |
protected void |
SqlAdvisorValidator.validateWhereClause(SqlSelect select)
Calls the parent class method and masks Farrago exception thrown.
|
| Modifier and Type | Method and Description |
|---|---|
SqlSelect |
SqlParserImpl.SqlSelect()
Parses a leaf SELECT expression without ORDER BY.
|
| Modifier and Type | Field and Description |
|---|---|
Map<Integer,SqlSelect> |
SqlValidatorImpl.FunctionParamInfo.cursorPosToSelectMap
Maps a cursor (based on its position relative to other cursor
parameters within a function call) to the SELECT associated with the
cursor.
|
| Modifier and Type | Method and Description |
|---|---|
protected SqlSelect |
SqlValidatorImpl.createSourceSelectForDelete(SqlDelete call)
Creates the SELECT statement that putatively feeds rows into a DELETE
statement to be deleted.
|
protected SqlSelect |
SqlValidatorImpl.createSourceSelectForUpdate(SqlUpdate call)
Creates the SELECT statement that putatively feeds rows into an UPDATE
statement to be updated.
|
SqlSelect |
SelectScope.getNode() |
SqlSelect |
SelectNamespace.getNode() |
| Modifier and Type | Method and Description |
|---|---|
protected SelectNamespace |
SqlValidatorImpl.createSelectNamespace(SqlSelect select,
SqlNode enclosingNode)
Creates a namespace for a
SELECT node. |
void |
SqlValidatorImpl.declareCursor(SqlSelect select,
SqlValidatorScope parentScope) |
void |
SqlValidator.declareCursor(SqlSelect select,
SqlValidatorScope scope)
Declares a SELECT expression as a cursor.
|
SqlNode |
SqlValidatorImpl.expandOrderExpr(SqlSelect select,
SqlNode orderExpr) |
SqlNode |
SqlValidator.expandOrderExpr(SqlSelect select,
SqlNode orderExpr)
Expands an expression in the ORDER BY clause into an expression with the
same semantics as expressions in the SELECT clause.
|
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 SqlNode |
SqlValidatorImpl.getAggregate(SqlSelect select)
Returns the parse tree node (GROUP BY, HAVING, or an aggregate function
call) that causes
select to be an aggregate query, or null if it is
not an aggregate query. |
SqlValidatorScope |
SqlValidatorImpl.getCursorScope(SqlSelect select) |
SqlValidatorScope |
SqlValidatorImpl.getFromScope(SqlSelect select) |
SqlValidatorScope |
SqlValidator.getFromScope(SqlSelect select)
Returns a scope containing the objects visible from the FROM clause of a
query.
|
SqlValidatorScope |
SqlValidatorImpl.getGroupScope(SqlSelect select) |
SqlValidatorScope |
SqlValidator.getGroupScope(SqlSelect select)
Returns a scope containing the objects visible from the GROUP BY clause
of a query.
|
SqlValidatorScope |
SqlValidatorImpl.getHavingScope(SqlSelect select) |
SqlValidatorScope |
SqlValidator.getHavingScope(SqlSelect select)
Returns a scope containing the objects visible from the HAVING clause of
a query.
|
SqlValidatorScope |
SqlValidatorImpl.getOrderScope(SqlSelect select) |
SqlValidatorScope |
SqlValidator.getOrderScope(SqlSelect select)
Returns the scope that expressions in the SELECT and HAVING clause of
this query should use.
|
SelectScope |
SqlValidatorImpl.getRawSelectScope(SqlSelect select) |
SelectScope |
SqlValidator.getRawSelectScope(SqlSelect select)
Returns the scope for resolving the SELECT, GROUP BY and HAVING clauses.
|
SqlValidatorScope |
SqlValidatorImpl.getSelectScope(SqlSelect select) |
SqlValidatorScope |
SqlValidator.getSelectScope(SqlSelect select)
Returns the appropriate scope for validating a particular clause of a
SELECT statement.
|
SqlValidatorScope |
SqlValidatorImpl.getWhereScope(SqlSelect select) |
SqlValidatorScope |
SqlValidator.getWhereScope(SqlSelect select)
Returns the scope that expressions in the WHERE and GROUP BY clause of
this query should use.
|
boolean |
SqlValidatorImpl.isAggregate(SqlSelect select) |
boolean |
SqlValidator.isAggregate(SqlSelect select)
Returns whether a SELECT statement is an aggregation.
|
protected void |
SqlValidatorImpl.validateGroupClause(SqlSelect select)
Validates the GROUP BY clause of a SELECT statement.
|
protected void |
SqlValidatorImpl.validateHavingClause(SqlSelect select) |
boolean |
SqlValidatorImpl.validateModality(SqlSelect select,
SqlModality modality,
boolean fail) |
boolean |
SqlValidator.validateModality(SqlSelect select,
SqlModality modality,
boolean fail)
Validates that a query is capable of producing a return of given modality
(relational or streaming).
|
protected void |
SqlValidatorImpl.validateOrderList(SqlSelect select)
Validates the ORDER BY clause of a SELECT statement.
|
protected void |
SqlValidatorImpl.validateSelect(SqlSelect select,
RelDataType targetRowType)
Validates a SELECT statement.
|
protected RelDataType |
SqlValidatorImpl.validateSelectList(SqlNodeList selectItems,
SqlSelect select,
RelDataType targetRowType) |
protected void |
SqlValidatorImpl.validateWhereClause(SqlSelect select) |
protected void |
SqlValidatorImpl.validateWindowClause(SqlSelect select) |
| Constructor and Description |
|---|
SelectNamespace(SqlValidatorImpl validator,
SqlSelect select,
SqlNode enclosingNode)
Creates a SelectNamespace.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
SqlToRelConverter.convertAgg(SqlToRelConverter.Blackboard bb,
SqlSelect select,
List<SqlNode> orderExprList)
Converts the SELECT, GROUP BY and HAVING clauses of an aggregate query.
|
protected void |
SqlToRelConverter.convertOrder(SqlSelect select,
SqlToRelConverter.Blackboard bb,
RelCollation collation,
List<SqlNode> orderExprList,
SqlNode offset,
SqlNode fetch)
Converts a query's ORDER BY clause, if any.
|
protected RelFieldCollation |
SqlToRelConverter.convertOrderItem(SqlSelect select,
SqlNode orderItem,
List<SqlNode> extraExprs,
RelFieldCollation.Direction direction,
RelFieldCollation.NullDirection nullDirection) |
RelNode |
SqlToRelConverter.convertSelect(SqlSelect select)
Converts a SELECT statement's parse tree into a relational expression.
|
protected void |
SqlToRelConverter.convertSelectImpl(SqlToRelConverter.Blackboard bb,
SqlSelect select)
Implementation of
SqlToRelConverter.convertSelect(SqlSelect); derived class may
override. |
protected void |
SqlToRelConverter.extraSelectItems(SqlToRelConverter.Blackboard bb,
SqlSelect select,
List<RexNode> exprList,
List<String> nameList,
Collection<String> aliasList,
List<SqlMonotonicity> columnMonotonicityList)
Adds extra select items.
|
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.
|
| Constructor and Description |
|---|
SqlToRelConverter.AggConverter(SqlToRelConverter.Blackboard bb,
SqlSelect select)
Creates an AggConverter.
|
Copyright © 2012–2015 The Apache Software Foundation. All rights reserved.