| Package | Description |
|---|---|
| org.apache.calcite.plan |
Defines interfaces for constructing rule-based optimizers of
relational expressions.
|
| org.apache.calcite.rel.rules |
Provides a core set of planner rules.
|
| org.apache.calcite.rex |
Provides a language for representing row-expressions.
|
| org.apache.calcite.sql2rel |
Translates a SQL parse tree to relational expression.
|
| Modifier and Type | Method and Description |
|---|---|
RelOptUtil.Logic |
RelOptUtil.Logic.negate() |
RelOptUtil.Logic |
RelOptUtil.Logic.negate2()
Variant of
negate() to be used within LogicVisitor,
where FALSE values may exist. |
static RelOptUtil.Logic |
RelOptUtil.Logic.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static RelOptUtil.Logic[] |
RelOptUtil.Logic.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
| Modifier and Type | Method and Description |
|---|---|
static RelOptUtil.Exists |
RelOptUtil.createExistsPlan(RelNode seekRel,
RelOptUtil.SubQueryType subQueryType,
RelOptUtil.Logic logic,
boolean notIn)
Creates a plan suitable for use in
EXISTS or IN
statements. |
| Modifier and Type | Method and Description |
|---|---|
protected RexNode |
SubQueryRemoveRule.apply(RexSubQuery e,
Set<CorrelationId> variablesSet,
RelOptUtil.Logic logic,
RelBuilder builder,
int inputCount,
int offset) |
| Modifier and Type | Field and Description |
|---|---|
private Collection<RelOptUtil.Logic> |
LogicVisitor.logicCollection |
| Modifier and Type | Method and Description |
|---|---|
static void |
LogicVisitor.collect(RexNode node,
RexNode seek,
RelOptUtil.Logic logic,
List<RelOptUtil.Logic> logicList) |
| Constructor and Description |
|---|
LogicVisitor(RexNode seek,
Collection<RelOptUtil.Logic> logicCollection)
Creates a LogicVisitor.
|
| Modifier and Type | Field and Description |
|---|---|
(package private) RelOptUtil.Logic |
SqlToRelConverter.SubQuery.logic |
| Modifier and Type | Method and Description |
|---|---|
private RelOptUtil.Exists |
SqlToRelConverter.convertExists(SqlNode seek,
RelOptUtil.SubQueryType subQueryType,
RelOptUtil.Logic logic,
boolean notIn,
RelDataType targetDataType)
Converts an EXISTS or IN predicate into a join.
|
private void |
SqlToRelConverter.findSubQueries(SqlToRelConverter.Blackboard bb,
SqlNode node,
RelOptUtil.Logic logic,
boolean registerOnlyScalarSubQueries)
Builds a list of all
IN or EXISTS operators
inside SQL parse tree. |
(package private) void |
SqlToRelConverter.Blackboard.registerSubQuery(SqlNode node,
RelOptUtil.Logic logic) |
private void |
SqlToRelConverter.replaceSubQueries(SqlToRelConverter.Blackboard bb,
SqlNode expr,
RelOptUtil.Logic logic) |
private RexNode |
SqlToRelConverter.translateIn(RelOptUtil.Logic logic,
RelNode root,
RexNode rex) |
| Constructor and Description |
|---|
SubQuery(SqlNode node,
RelOptUtil.Logic logic) |
Copyright © 2012–2018 The Apache Software Foundation. All rights reserved.