Package | Description |
---|---|
org.apache.calcite.adapter.enumerable |
Query optimizer rules for Java calling convention.
|
org.apache.calcite.adapter.jdbc |
Query provider based on a JDBC data source.
|
org.apache.calcite.interpreter |
Provides an implementation of relational expressions using an interpreter.
|
org.apache.calcite.plan |
Defines interfaces for constructing rule-based optimizers of
relational expressions.
|
org.apache.calcite.plan.volcano |
Optimizes relational expressions.
|
org.apache.calcite.rel |
Defines relational expressions.
|
org.apache.calcite.rel.core |
Defines core relational expressions.
|
org.apache.calcite.rel.externalize |
Facilities to externalize
RelNode s to and from
XML and JSON format. |
org.apache.calcite.rel.logical |
Defines logical relational expressions.
|
org.apache.calcite.rel.mutable |
Defines mutable relational expressions.
|
org.apache.calcite.rel.rel2sql |
Translates a relational expression to SQL parse tree.
|
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.
|
org.apache.calcite.tools |
Provides utility classes.
|
Modifier and Type | Method and Description |
---|---|
EnumerableCorrelate |
EnumerableCorrelate.copy(RelTraitSet traitSet,
RelNode left,
RelNode right,
CorrelationId correlationId,
ImmutableBitSet requiredColumns,
JoinRelType joinType) |
static EnumerableCorrelate |
EnumerableCorrelate.create(RelNode left,
RelNode right,
CorrelationId correlationId,
ImmutableBitSet requiredColumns,
JoinRelType joinType)
Creates an EnumerableCorrelate.
|
Modifier and Type | Method and Description |
---|---|
static EnumerableNestedLoopJoin |
EnumerableNestedLoopJoin.create(RelNode left,
RelNode right,
RexNode condition,
java.util.Set<CorrelationId> variablesSet,
JoinRelType joinType)
Creates an EnumerableNestedLoopJoin.
|
static EnumerableHashJoin |
EnumerableHashJoin.create(RelNode left,
RelNode right,
RexNode condition,
java.util.Set<CorrelationId> variablesSet,
JoinRelType joinType)
Creates an EnumerableHashJoin.
|
Constructor and Description |
---|
EnumerableCorrelate(RelOptCluster cluster,
RelTraitSet traits,
RelNode left,
RelNode right,
CorrelationId correlationId,
ImmutableBitSet requiredColumns,
JoinRelType joinType) |
Constructor and Description |
---|
EnumerableHashJoin(RelOptCluster cluster,
RelTraitSet traits,
RelNode left,
RelNode right,
RexNode condition,
java.util.Set<CorrelationId> variablesSet,
JoinRelType joinType)
Creates an EnumerableHashJoin.
|
EnumerableMergeJoin(RelOptCluster cluster,
RelTraitSet traits,
RelNode left,
RelNode right,
RexNode condition,
ImmutableIntList leftKeys,
ImmutableIntList rightKeys,
java.util.Set<CorrelationId> variablesSet,
JoinRelType joinType)
Deprecated.
|
EnumerableMergeJoin(RelOptCluster cluster,
RelTraitSet traits,
RelNode left,
RelNode right,
RexNode condition,
java.util.Set<CorrelationId> variablesSet,
JoinRelType joinType) |
EnumerableNestedLoopJoin(RelOptCluster cluster,
RelTraitSet traits,
RelNode left,
RelNode right,
RexNode condition,
java.util.Set<CorrelationId> variablesSet,
JoinRelType joinType)
Creates an EnumerableNestedLoopJoin.
|
Constructor and Description |
---|
JdbcJoin(RelOptCluster cluster,
RelTraitSet traitSet,
RelNode left,
RelNode right,
RexNode condition,
java.util.Set<CorrelationId> variablesSet,
JoinRelType joinType)
Creates a JdbcJoin.
|
Constructor and Description |
---|
BindableJoin(RelOptCluster cluster,
RelTraitSet traitSet,
RelNode left,
RelNode right,
RexNode condition,
java.util.Set<CorrelationId> variablesSet,
JoinRelType joinType)
Creates a BindableJoin.
|
Modifier and Type | Field and Description |
---|---|
com.google.common.collect.Multimap<CorrelationId,java.lang.Integer> |
RelOptUtil.VariableUsedVisitor.variableFields |
(package private) java.util.Set<CorrelationId> |
RelOptUtil.VariableSetVisitor.variables |
java.util.Set<CorrelationId> |
RelOptUtil.VariableUsedVisitor.variables |
Modifier and Type | Method and Description |
---|---|
CorrelationId |
RelOptCluster.createCorrel()
Constructs a new id for a correlating variable.
|
Modifier and Type | Method and Description |
---|---|
static java.util.Set<CorrelationId> |
RelOptUtil.getVariablesSet(RelNode rel)
Returns a list of variables set by a relational expression or its
descendants.
|
static java.util.List<CorrelationId> |
RelOptUtil.getVariablesSetAndUsed(RelNode rel0,
RelNode rel1)
Deprecated.
|
static java.util.Set<CorrelationId> |
RelOptUtil.getVariablesUsed(RelNode rel)
Returns a set of variables used by a relational expression or its
descendants.
|
Modifier and Type | Method and Description |
---|---|
static ImmutableBitSet |
RelOptUtil.correlationColumns(CorrelationId id,
RelNode rel)
Finds which columns of a correlation variable are used within a
relational expression.
|
static boolean |
RelOptUtil.notContainsCorrelation(RelNode r,
CorrelationId correlationId,
Litmus litmus)
Returns true, and calls
Litmus.succeed() if a given relational
expression does not contain a given correlation. |
Modifier and Type | Field and Description |
---|---|
(package private) java.util.Set<CorrelationId> |
RelSet.variablesPropagated
Variables that are set by relational expressions in this set
and available for use by parent and child expressions.
|
(package private) java.util.Set<CorrelationId> |
RelSet.variablesUsed
Variables that are used by relational expressions in this set.
|
Modifier and Type | Method and Description |
---|---|
void |
RelSubset.collectVariablesSet(java.util.Set<CorrelationId> variableSet) |
void |
RelSubset.collectVariablesUsed(java.util.Set<CorrelationId> variableSet) |
Constructor and Description |
---|
RelSet(int id,
java.util.Set<CorrelationId> variablesPropagated,
java.util.Set<CorrelationId> variablesUsed) |
RelSet(int id,
java.util.Set<CorrelationId> variablesPropagated,
java.util.Set<CorrelationId> variablesUsed) |
Modifier and Type | Method and Description |
---|---|
java.util.Set<CorrelationId> |
RelNode.Context.correlationIds() |
java.util.Set<CorrelationId> |
RelNode.getVariablesSet()
Returns the variables that are set in this relational
expression but also used and therefore not available to parents of this
relational expression.
|
java.util.Set<CorrelationId> |
AbstractRelNode.getVariablesSet() |
Modifier and Type | Method and Description |
---|---|
void |
RelNode.collectVariablesSet(java.util.Set<CorrelationId> variableSet)
Collects variables set by this expression.
|
void |
AbstractRelNode.collectVariablesSet(java.util.Set<CorrelationId> variableSet) |
void |
RelNode.collectVariablesUsed(java.util.Set<CorrelationId> variableSet)
Collects variables known to be used by this expression or its
descendants.
|
void |
AbstractRelNode.collectVariablesUsed(java.util.Set<CorrelationId> variableSet) |
Modifier and Type | Field and Description |
---|---|
protected CorrelationId |
Correlate.correlationId |
Modifier and Type | Field and Description |
---|---|
protected com.google.common.collect.ImmutableSet<CorrelationId> |
Join.variablesSet |
Modifier and Type | Method and Description |
---|---|
CorrelationId |
Correlate.getCorrelationId()
Returns the correlating expressions.
|
Modifier and Type | Method and Description |
---|---|
java.util.Set<CorrelationId> |
Join.getVariablesSet() |
java.util.Set<CorrelationId> |
Correlate.getVariablesSet() |
static com.google.common.collect.ImmutableSet<CorrelationId> |
CorrelationId.setOf(java.util.Set<java.lang.String> set)
Converts a set of correlation ids to a set of names.
|
Modifier and Type | Method and Description |
---|---|
int |
CorrelationId.compareTo(CorrelationId other) |
abstract Correlate |
Correlate.copy(RelTraitSet traitSet,
RelNode left,
RelNode right,
CorrelationId correlationId,
ImmutableBitSet requiredColumns,
JoinRelType joinType) |
RelNode |
RelFactories.CorrelateFactory.createCorrelate(RelNode left,
RelNode right,
CorrelationId correlationId,
ImmutableBitSet requiredColumns,
JoinRelType joinType)
Creates a correlate.
|
RelNode |
RelFactories.CorrelateFactoryImpl.createCorrelate(RelNode left,
RelNode right,
CorrelationId correlationId,
ImmutableBitSet requiredColumns,
JoinRelType joinType) |
Modifier and Type | Method and Description |
---|---|
RelNode |
RelFactories.JoinFactory.createJoin(RelNode left,
RelNode right,
RexNode condition,
java.util.Set<CorrelationId> variablesSet,
JoinRelType joinType,
boolean semiJoinDone)
Creates a join.
|
RelNode |
RelFactories.JoinFactoryImpl.createJoin(RelNode left,
RelNode right,
RexNode condition,
java.util.Set<CorrelationId> variablesSet,
JoinRelType joinType,
boolean semiJoinDone) |
static java.util.Set<java.lang.String> |
CorrelationId.names(java.util.Set<CorrelationId> set)
Converts a set of names to a set of correlation ids.
|
Constructor and Description |
---|
Correlate(RelOptCluster cluster,
RelTraitSet traitSet,
RelNode left,
RelNode right,
CorrelationId correlationId,
ImmutableBitSet requiredColumns,
JoinRelType joinType)
Creates a Correlate.
|
Correlate(RelOptCluster cluster,
RelTraitSet traitSet,
RelNode left,
RelNode right,
CorrelationId correlationId,
ImmutableBitSet requiredColumns,
SemiJoinType joinType)
Deprecated.
|
Constructor and Description |
---|
EquiJoin(RelOptCluster cluster,
RelTraitSet traits,
RelNode left,
RelNode right,
RexNode condition,
ImmutableIntList leftKeys,
ImmutableIntList rightKeys,
java.util.Set<CorrelationId> variablesSet,
JoinRelType joinType)
Deprecated.
|
EquiJoin(RelOptCluster cluster,
RelTraitSet traits,
RelNode left,
RelNode right,
RexNode condition,
java.util.Set<CorrelationId> variablesSet,
JoinRelType joinType)
Creates an EquiJoin.
|
Join(RelOptCluster cluster,
RelTraitSet traitSet,
RelNode left,
RelNode right,
RexNode condition,
java.util.Set<CorrelationId> variablesSet,
JoinRelType joinType)
Creates a Join.
|
Modifier and Type | Method and Description |
---|---|
private java.lang.Object |
RelJson.toJson(CorrelationId node) |
Modifier and Type | Field and Description |
---|---|
private com.google.common.collect.ImmutableSet<CorrelationId> |
LogicalFilter.variablesSet |
Modifier and Type | Method and Description |
---|---|
java.util.Set<CorrelationId> |
LogicalFilter.getVariablesSet() |
Modifier and Type | Method and Description |
---|---|
LogicalCorrelate |
LogicalCorrelate.copy(RelTraitSet traitSet,
RelNode left,
RelNode right,
CorrelationId correlationId,
ImmutableBitSet requiredColumns,
JoinRelType joinType) |
static LogicalCorrelate |
LogicalCorrelate.create(RelNode left,
RelNode right,
CorrelationId correlationId,
ImmutableBitSet requiredColumns,
JoinRelType joinType)
Creates a LogicalCorrelate.
|
static LogicalCorrelate |
LogicalCorrelate.create(RelNode left,
RelNode right,
CorrelationId correlationId,
ImmutableBitSet requiredColumns,
SemiJoinType joinType)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
void |
LogicalCalc.collectVariablesUsed(java.util.Set<CorrelationId> variableSet) |
static LogicalJoin |
LogicalJoin.create(RelNode left,
RelNode right,
RexNode condition,
java.util.Set<CorrelationId> variablesSet,
JoinRelType joinType)
Creates a LogicalJoin.
|
static LogicalJoin |
LogicalJoin.create(RelNode left,
RelNode right,
RexNode condition,
java.util.Set<CorrelationId> variablesSet,
JoinRelType joinType,
boolean semiJoinDone,
com.google.common.collect.ImmutableList<RelDataTypeField> systemFieldList)
Creates a LogicalJoin, flagged with whether it has been translated to a
semi-join.
|
static LogicalFilter |
LogicalFilter.create(RelNode input,
RexNode condition,
com.google.common.collect.ImmutableSet<CorrelationId> variablesSet)
Creates a LogicalFilter.
|
Constructor and Description |
---|
LogicalCorrelate(RelOptCluster cluster,
RelTraitSet traitSet,
RelNode left,
RelNode right,
CorrelationId correlationId,
ImmutableBitSet requiredColumns,
JoinRelType joinType)
Creates a LogicalCorrelate.
|
LogicalCorrelate(RelOptCluster cluster,
RelTraitSet traitSet,
RelNode left,
RelNode right,
CorrelationId correlationId,
ImmutableBitSet requiredColumns,
SemiJoinType joinType)
Deprecated.
|
Constructor and Description |
---|
LogicalFilter(RelOptCluster cluster,
RelTraitSet traitSet,
RelNode child,
RexNode condition,
com.google.common.collect.ImmutableSet<CorrelationId> variablesSet)
Creates a LogicalFilter.
|
LogicalJoin(RelOptCluster cluster,
RelTraitSet traitSet,
RelNode left,
RelNode right,
RexNode condition,
java.util.Set<CorrelationId> variablesSet,
JoinRelType joinType,
boolean semiJoinDone,
com.google.common.collect.ImmutableList<RelDataTypeField> systemFieldList)
Creates a LogicalJoin.
|
Modifier and Type | Field and Description |
---|---|
CorrelationId |
MutableCorrelate.correlationId |
Modifier and Type | Field and Description |
---|---|
java.util.Set<CorrelationId> |
MutableJoin.variablesSet |
Modifier and Type | Method and Description |
---|---|
static MutableCorrelate |
MutableCorrelate.of(RelDataType rowType,
MutableRel left,
MutableRel right,
CorrelationId correlationId,
ImmutableBitSet requiredColumns,
JoinRelType joinType)
Creates a MutableCorrelate.
|
Modifier and Type | Method and Description |
---|---|
static MutableJoin |
MutableJoin.of(RelDataType rowType,
MutableRel left,
MutableRel right,
RexNode condition,
JoinRelType joinType,
java.util.Set<CorrelationId> variablesStopped)
Creates a MutableJoin.
|
Constructor and Description |
---|
MutableCorrelate(RelDataType rowType,
MutableRel left,
MutableRel right,
CorrelationId correlationId,
ImmutableBitSet requiredColumns,
JoinRelType joinType) |
Constructor and Description |
---|
MutableJoin(RelDataType rowType,
MutableRel left,
MutableRel right,
RexNode condition,
JoinRelType joinType,
java.util.Set<CorrelationId> variablesSet) |
Modifier and Type | Field and Description |
---|---|
protected java.util.Map<CorrelationId,SqlImplementor.Context> |
SqlImplementor.correlTableMap |
Modifier and Type | Field and Description |
---|---|
private CorrelationId |
ProjectCorrelateTransposeRule.RexFieldAccessReplacer.rexCorrelVariableToReplace |
Modifier and Type | Method and Description |
---|---|
protected RexNode |
SubQueryRemoveRule.apply(RexSubQuery e,
java.util.Set<CorrelationId> variablesSet,
RelOptUtil.Logic logic,
RelBuilder builder,
int inputCount,
int offset) |
private RexNode |
SubQueryRemoveRule.rewriteExists(RexSubQuery e,
java.util.Set<CorrelationId> variablesSet,
RelOptUtil.Logic logic,
RelBuilder builder)
Rewrites an EXISTS RexSubQuery into a
Join . |
private RexNode |
SubQueryRemoveRule.rewriteIn(RexSubQuery e,
java.util.Set<CorrelationId> variablesSet,
RelOptUtil.Logic logic,
RelBuilder builder,
int offset)
Rewrites an IN RexSubQuery into a
Join . |
private RexNode |
SubQueryRemoveRule.rewriteScalarQuery(RexSubQuery e,
java.util.Set<CorrelationId> variablesSet,
RelBuilder builder,
int inputCount,
int offset)
Rewrites a scalar sub-query into an
Aggregate . |
Constructor and Description |
---|
RexFieldAccessReplacer(CorrelationId rexCorrelVariableToReplace,
RexCorrelVariable rexCorrelVariable,
RexBuilder builder,
java.util.Map<java.lang.Integer,java.lang.Integer> requiredColsMap) |
Modifier and Type | Field and Description |
---|---|
CorrelationId |
RexCorrelVariable.id |
Modifier and Type | Method and Description |
---|---|
RexNode |
RexBuilder.makeCorrel(RelDataType type,
CorrelationId id)
Creates an expression referencing a correlation variable.
|
Constructor and Description |
---|
RexCorrelVariable(CorrelationId id,
RelDataType type) |
Modifier and Type | Field and Description |
---|---|
private CorrelationId |
DeduplicateCorrelateVariables.DeduplicateCorrelateVariablesShuttle.canonicalId |
CorrelationId |
RelDecorrelator.CorRef.corr |
CorrelationId |
RelDecorrelator.CorDef.corr |
private CorrelationId |
SqlToRelConverter.CorrelationUse.id |
Modifier and Type | Field and Description |
---|---|
private com.google.common.collect.ImmutableSet<CorrelationId> |
DeduplicateCorrelateVariables.DeduplicateCorrelateVariablesShuttle.alternateIds |
private java.util.Map<CorrelationId,RexFieldAccess> |
SqlToRelConverter.Blackboard.mapCorrelateToRex |
private java.util.Map<CorrelationId,SqlToRelConverter.DeferredLookup> |
SqlToRelConverter.mapCorrelToDeferred
Fields used in name resolution for correlated sub-queries.
|
private java.util.SortedMap<CorrelationId,RelNode> |
RelDecorrelator.CorelMap.mapCorToCorRel |
(package private) java.util.SortedMap<CorrelationId,RelNode> |
RelDecorrelator.CorelMapBuilder.mapCorToCorRel |
Modifier and Type | Method and Description |
---|---|
RexFieldAccess |
SqlToRelConverter.DeferredLookup.getFieldAccess(CorrelationId name) |
static RelNode |
DeduplicateCorrelateVariables.go(RexBuilder builder,
CorrelationId canonicalId,
java.lang.Iterable<? extends CorrelationId> alternateIds,
RelNode r)
Rewrites a relational expression, replacing alternate correlation variables
with a canonical correlation variable.
|
Modifier and Type | Method and Description |
---|---|
static RelNode |
DeduplicateCorrelateVariables.go(RexBuilder builder,
CorrelationId canonicalId,
java.lang.Iterable<? extends CorrelationId> alternateIds,
RelNode r)
Rewrites a relational expression, replacing alternate correlation variables
with a canonical correlation variable.
|
static RelDecorrelator.CorelMap |
RelDecorrelator.CorelMap.of(com.google.common.collect.SortedSetMultimap<RelNode,RelDecorrelator.CorRef> mapRefRelToCorVar,
java.util.SortedMap<CorrelationId,RelNode> mapCorToCorRel,
java.util.Map<RexFieldAccess,RelDecorrelator.CorRef> mapFieldAccessToCorVar)
Creates a CorelMap with given contents.
|
void |
RelStructuredTypeFlattener.updateRelInMap(java.util.SortedMap<CorrelationId,LogicalCorrelate> mapCorVarToCorRel) |
void |
RelStructuredTypeFlattener.updateRelInMap(com.google.common.collect.SortedSetMultimap<RelNode,CorrelationId> mapRefRelToCorVar) |
Constructor and Description |
---|
CorDef(CorrelationId corr,
int field) |
CorRef(CorrelationId corr,
int field,
int uniqueKey) |
CorrelationUse(CorrelationId id,
ImmutableBitSet requiredColumns,
RelNode r) |
DeduplicateCorrelateVariables(RexBuilder builder,
CorrelationId canonicalId,
com.google.common.collect.ImmutableSet<CorrelationId> alternateIds)
Creates a DeduplicateCorrelateVariables.
|
DeduplicateCorrelateVariablesShuttle(RexBuilder builder,
CorrelationId canonicalId,
com.google.common.collect.ImmutableSet<CorrelationId> alternateIds,
DeduplicateCorrelateVariables shuttle) |
Constructor and Description |
---|
CorelMap(com.google.common.collect.Multimap<RelNode,RelDecorrelator.CorRef> mapRefRelToCorRef,
java.util.SortedMap<CorrelationId,RelNode> mapCorToCorRel,
java.util.Map<RexFieldAccess,RelDecorrelator.CorRef> mapFieldAccessToCorRef) |
DeduplicateCorrelateVariables(RexBuilder builder,
CorrelationId canonicalId,
com.google.common.collect.ImmutableSet<CorrelationId> alternateIds)
Creates a DeduplicateCorrelateVariables.
|
DeduplicateCorrelateVariablesShuttle(RexBuilder builder,
CorrelationId canonicalId,
com.google.common.collect.ImmutableSet<CorrelationId> alternateIds,
DeduplicateCorrelateVariables shuttle) |
Modifier and Type | Field and Description |
---|---|
private CorrelationId |
RelBuilder.Shifter.id |
Modifier and Type | Method and Description |
---|---|
RelBuilder |
RelBuilder.join(JoinRelType joinType,
RexNode condition,
java.util.Set<CorrelationId> variablesSet)
Creates a
Join with correlating
variables. |
Constructor and Description |
---|
Shifter(RelNode left,
CorrelationId id,
RelNode right) |
Copyright © 2012–2019 The Apache Software Foundation. All rights reserved.