OmniSciDB
a5dc49c757
|
Public Member Functions | |
SqlNode | getTopNode () |
void | setPatternVarRef (boolean isVarRef) |
RexNode | register (RelNode rel, JoinRelType joinType) |
RexNode | register (RelNode rel, JoinRelType joinType, List< RexNode > leftKeys) |
void | setRoot (RelNode root, boolean leaf) |
void | setDataset (String datasetName) |
Public Attributes | |
final SqlValidatorScope | scope |
RelNode | root |
Protected Member Functions | |
Blackboard (SqlValidatorScope scope, Map< String, RexNode > nameToNodeMap, boolean top) | |
Package Functions | |
void | setRoot (List< RelNode > inputs) |
Pair< RexNode, Map< String, Integer > > | lookupExp (SqlQualified qualified) |
Package Attributes | |
final List< RelNode > | cursors = new ArrayList<>() |
AggConverter | agg |
SqlWindow | window |
final boolean | top |
Private Member Functions | |
void | setRoot (List< RelNode > inputs, RelNode root, boolean hasSystemFields) |
Private Attributes | |
final Map< String, RexNode > | nameToNodeMap |
List< RelNode > | inputs |
final Map< CorrelationId, RexFieldAccess > | mapCorrelateToRex = new HashMap<>() |
boolean | isPatternVarRef = false |
final List< SubQuery > | subQueryList = new ArrayList<>() |
final Map< RelNode, Map < Integer, Integer > > | mapRootRelToFieldProjection |
final List< SqlMonotonicity > | columnMonotonicities = new ArrayList<>() |
final List< RelDataTypeField > | systemFieldList = new ArrayList<>() |
final InitializerExpressionFactory | initializerExpressionFactory |
Workspace for translating an individual SELECT statement (or sub-SELECT).
Definition at line 4111 of file SqlToRelConverter.java.
|
inlineprotected |
Creates a Blackboard.
scope | Name-resolution scope for expressions validated within this query. Can be null if this Blackboard is for a leaf node, say |
nameToNodeMap | Map which translates the expression to map a given parameter into, if translating expressions; null otherwise |
top | Whether this is the root of the query |
Definition at line 4170 of file SqlToRelConverter.java.
|
inline |
Definition at line 4177 of file SqlToRelConverter.java.
Referenced by org.apache.calcite.sql2rel.SqlToRelConverter.substituteSubQuery().
|
inlinepackage |
Returns an expression with which to reference a from-list item.
qualified | the alias of the from item |
Definition at line 4333 of file SqlToRelConverter.java.
References f(), field(), and Integer.
|
inline |
Definition at line 4192 of file SqlToRelConverter.java.
|
inline |
Registers a relational expression.
rel | Relational expression |
joinType | Join type |
leftKeys | LHS of IN clause, or null for expressions other than IN |
Definition at line 4205 of file SqlToRelConverter.java.
References join(), and setup.root.
|
inline |
Notifies this Blackboard that the root just set using setRoot(RelNode, boolean) was derived using dataset substitution.
The default implementation is not interested in such notifications, and does nothing.
datasetName | Dataset name |
Definition at line 4321 of file SqlToRelConverter.java.
|
inline |
Definition at line 4188 of file SqlToRelConverter.java.
|
inline |
Sets a new root relational expression, as the translation process backs its way further up the tree.
root | New root relational expression |
leaf | Whether the relational expression is a leaf, that is, derived from an atomic relational expression such as a table name in the from clause, or the projection on top of a select-sub-query. In particular, relational expressions derived from JOIN operators are not leaves, but set expressions are. |
Definition at line 4294 of file SqlToRelConverter.java.
References setup.root.
|
inlineprivate |
Definition at line 4302 of file SqlToRelConverter.java.
References setup.root.
|
inlinepackage |
Definition at line 4323 of file SqlToRelConverter.java.
|
package |
Workspace for building aggregates.
Definition at line 4135 of file SqlToRelConverter.java.
|
private |
Definition at line 4151 of file SqlToRelConverter.java.
|
package |
Definition at line 4124 of file SqlToRelConverter.java.
|
private |
Definition at line 4156 of file SqlToRelConverter.java.
|
private |
Definition at line 4119 of file SqlToRelConverter.java.
Referenced by TableFunctionsFactory_node.UdtfNode.__iter__().
|
private |
Definition at line 4122 of file SqlToRelConverter.java.
Referenced by org.apache.calcite.sql2rel.SqlToRelConverter.convertIdentifier().
|
private |
Definition at line 4120 of file SqlToRelConverter.java.
|
private |
Project the groupby expressions out of the root of this sub-select. Sub-queries can reference group by expressions projected from the "right" to the sub-query.
Definition at line 4148 of file SqlToRelConverter.java.
Referenced by org.apache.calcite.sql2rel.SqlToRelConverter.getCorrelationUse().
|
private |
Definition at line 4117 of file SqlToRelConverter.java.
RelNode org.apache.calcite.sql2rel.SqlToRelConverter.Blackboard.root |
Definition at line 4118 of file SqlToRelConverter.java.
Referenced by org.apache.calcite.sql2rel.SqlToRelConverter.convertFrom(), org.apache.calcite.sql2rel.SqlToRelConverter.convertUnnest(), org.apache.calcite.sql2rel.SqlToRelConverter.getCorrelationUse(), and org.apache.calcite.sql2rel.SqlToRelConverter.substituteSubQuery().
final SqlValidatorScope org.apache.calcite.sql2rel.SqlToRelConverter.Blackboard.scope |
Collection of RelNode objects which correspond to a SELECT statement.
Definition at line 4116 of file SqlToRelConverter.java.
Referenced by org.apache.calcite.sql2rel.SqlToRelConverter.convertCollectionTable(), org.apache.calcite.sql2rel.SqlToRelConverter.convertIdentifier(), org.apache.calcite.sql2rel.SqlToRelConverter.convertMultisets(), org.apache.calcite.sql2rel.SqlToRelConverter.convertValuesImpl(), org.apache.calcite.sql2rel.SqlToRelConverter.convertWhere(), and org.apache.calcite.sql2rel.SqlToRelConverter.createAggImpl().
|
private |
List of IN
and EXISTS
nodes inside this SELECT
statement (but not inside sub-queries).
Definition at line 4130 of file SqlToRelConverter.java.
Referenced by org.apache.calcite.sql2rel.SqlToRelConverter.replaceSubQueries().
|
private |
Definition at line 4153 of file SqlToRelConverter.java.
|
package |
Definition at line 4154 of file SqlToRelConverter.java.
Referenced by org.apache.calcite.sql2rel.SqlToRelConverter.convertOrder(), and org.apache.calcite.sql2rel.SqlToRelConverter.gatherOrderExprs().
|
package |
When converting window aggregate, we need to know if the window is guaranteed to be non-empty.
Definition at line 4141 of file SqlToRelConverter.java.