Package | Description |
---|---|
org.apache.calcite.sql2rel |
Modifier and Type | Method and Description |
---|---|
protected SqlToRelConverter.Blackboard |
SqlToRelConverter.createBlackboard(@Nullable org.apache.calcite.sql.validate.SqlValidatorScope scope,
@Nullable Map<String,org.apache.calcite.rex.RexNode> nameToNodeMap,
boolean top)
Factory method for creating translation workspace.
|
Modifier and Type | Method and Description |
---|---|
protected org.apache.calcite.rex.RexNode |
SqlToRelConverter.adjustInputRef(SqlToRelConverter.Blackboard bb,
org.apache.calcite.rex.RexInputRef inputRef)
Adjusts the type of a reference to an input field to account for nulls introduced by outer
joins; and adjusts the offset to match the physical implementation.
|
protected void |
SqlToRelConverter.afterTableFunction(SqlToRelConverter.Blackboard bb,
org.apache.calcite.sql.SqlCall call,
org.apache.calcite.rel.logical.LogicalTableFunctionScan callRel) |
protected void |
SqlToRelConverter.convertAgg(SqlToRelConverter.Blackboard bb,
org.apache.calcite.sql.SqlSelect select,
List<org.apache.calcite.sql.SqlNode> orderExprList)
Converts the SELECT, GROUP BY and HAVING clauses of an aggregate query.
|
protected void |
SqlToRelConverter.convertCollectionTable(SqlToRelConverter.Blackboard bb,
org.apache.calcite.sql.SqlCall call) |
protected @Nullable org.apache.calcite.rex.RexNode |
SqlToRelConverter.convertExtendedExpression(org.apache.calcite.sql.SqlNode node,
SqlToRelConverter.Blackboard bb)
Converts a non-standard expression.
|
protected void |
SqlToRelConverter.convertFrom(SqlToRelConverter.Blackboard bb,
@Nullable org.apache.calcite.sql.SqlNode from) |
protected void |
SqlToRelConverter.convertFrom(SqlToRelConverter.Blackboard bb,
@Nullable org.apache.calcite.sql.SqlNode from,
@Nullable List<String> fieldNames)
Converts a FROM clause into a relational expression.
|
protected void |
SqlToRelConverter.convertMatchRecognize(SqlToRelConverter.Blackboard bb,
org.apache.calcite.sql.SqlMatchRecognize matchRecognize) |
protected void |
SqlToRelConverter.convertOrder(org.apache.calcite.sql.SqlSelect select,
SqlToRelConverter.Blackboard bb,
org.apache.calcite.rel.RelCollation collation,
List<org.apache.calcite.sql.SqlNode> orderExprList,
@Nullable org.apache.calcite.sql.SqlNode offset,
@Nullable org.apache.calcite.sql.SqlNode fetch)
Converts a query's ORDER BY clause, if any.
|
protected void |
SqlToRelConverter.convertPivot(SqlToRelConverter.Blackboard bb,
org.apache.calcite.sql.SqlPivot pivot) |
protected void |
SqlToRelConverter.convertSelectImpl(SqlToRelConverter.Blackboard bb,
org.apache.calcite.sql.SqlSelect select)
Implementation of
SqlToRelConverter.convertSelect(SqlSelect, boolean) ; derived class may override. |
protected void |
SqlToRelConverter.convertUnpivot(SqlToRelConverter.Blackboard bb,
org.apache.calcite.sql.SqlUnpivot unpivot) |
protected void |
SqlToRelConverter.createAggImpl(SqlToRelConverter.Blackboard bb,
SqlToRelConverter.AggConverter aggConverter,
org.apache.calcite.sql.SqlNodeList selectList,
@Nullable org.apache.calcite.sql.SqlNodeList groupList,
@Nullable org.apache.calcite.sql.SqlNode having,
List<org.apache.calcite.sql.SqlNode> orderExprList) |
protected org.apache.calcite.rel.RelNode |
SqlToRelConverter.createAggregate(SqlToRelConverter.Blackboard bb,
org.apache.calcite.util.ImmutableBitSet groupSet,
com.google.common.collect.ImmutableList<org.apache.calcite.util.ImmutableBitSet> groupSets,
List<org.apache.calcite.rel.core.AggregateCall> aggCalls)
Creates an Aggregate.
|
protected org.apache.calcite.rel.RelNode |
SqlToRelConverter.createJoin(SqlToRelConverter.Blackboard bb,
org.apache.calcite.rel.RelNode leftRel,
org.apache.calcite.rel.RelNode rightRel,
org.apache.calcite.rex.RexNode joinCond,
org.apache.calcite.rel.core.JoinRelType joinType) |
protected void |
SqlToRelConverter.extraSelectItems(SqlToRelConverter.Blackboard bb,
org.apache.calcite.sql.SqlSelect select,
List<org.apache.calcite.rex.RexNode> exprList,
List<String> nameList,
Collection<String> aliasList,
List<org.apache.calcite.sql.validate.SqlMonotonicity> columnMonotonicityList)
Adds extra select items.
|
protected void |
SqlToRelConverter.gatherOrderExprs(SqlToRelConverter.Blackboard bb,
org.apache.calcite.sql.SqlSelect select,
@Nullable org.apache.calcite.sql.SqlNodeList orderList,
List<org.apache.calcite.sql.SqlNode> extraOrderExprs,
List<org.apache.calcite.rel.RelFieldCollation> collationList)
Creates a list of collations required to implement the ORDER BY clause, if there is one.
|
Constructor and Description |
---|
AggConverter(SqlToRelConverter.Blackboard bb,
org.apache.calcite.sql.SqlSelect select)
Creates an AggConverter.
|
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.