| Package | Description |
|---|---|
| org.apache.calcite.plan |
Defines interfaces for constructing rule-based optimizers of
relational expressions.
|
| org.apache.calcite.plan.hep |
Provides a heuristic planner implementation for the interfaces in
org.apache.calcite.plan. |
| org.apache.calcite.plan.volcano |
Optimizes relational expressions.
|
| org.apache.calcite.rel.rules |
Provides a core set of planner rules.
|
| Modifier and Type | Class and Description |
|---|---|
private static class |
RelOptRule.ConverterRelOptRuleOperand
Operand to an instance of the converter rule.
|
| Modifier and Type | Field and Description |
|---|---|
private RelOptRuleOperand |
RelOptRule.operand
Root of operand tree.
|
protected RelOptRuleOperand |
RelOptRuleCall.operand0 |
private RelOptRuleOperand |
RelOptRuleOperand.parent |
| Modifier and Type | Field and Description |
|---|---|
private com.google.common.collect.ImmutableList<RelOptRuleOperand> |
RelOptRuleOperand.children |
List<RelOptRuleOperand> |
RelOptRule.operands
Flattened list of operands.
|
(package private) com.google.common.collect.ImmutableList<RelOptRuleOperand> |
RelOptRuleOperandChildren.operands |
| Modifier and Type | Method and Description |
|---|---|
RelOptRuleOperand |
RelOptRule.getOperand()
Returns the root operand of this rule
|
RelOptRuleOperand |
RelOptRuleCall.getOperand0()
Returns the root operand matched by this rule.
|
RelOptRuleOperand |
RelOptRuleOperand.getParent()
Returns the parent operand.
|
static <R extends RelNode> |
RelOptRule.operand(Class<R> clazz,
RelOptRuleOperandChildren operandList)
Creates an operand that matches a relational expression that has no
children.
|
static <R extends RelNode> |
RelOptRule.operand(Class<R> clazz,
RelOptRuleOperand first,
RelOptRuleOperand... rest)
Creates an operand that matches a relational expression with a given
list of children.
|
static <R extends RelNode> |
RelOptRule.operand(Class<R> clazz,
RelTrait trait,
com.google.common.base.Predicate<? super R> predicate,
RelOptRuleOperandChildren operandList)
Creates an operand that matches a relational expression that has a
particular trait and predicate.
|
static <R extends RelNode> |
RelOptRule.operand(Class<R> clazz,
RelTrait trait,
com.google.common.base.Predicate<? super R> predicate,
RelOptRuleOperand first,
RelOptRuleOperand... rest)
Creates an operand that matches a relational expression that has no
children.
|
static <R extends RelNode> |
RelOptRule.operand(Class<R> clazz,
RelTrait trait,
RelOptRuleOperandChildren operandList)
Creates an operand that matches a relational expression that has no
children.
|
| Modifier and Type | Method and Description |
|---|---|
private List<RelOptRuleOperand> |
RelOptRule.flattenOperands(RelOptRuleOperand rootOperand)
Creates a flattened list of this operand and its descendants in prefix
order.
|
List<RelOptRuleOperand> |
RelOptRuleOperand.getChildOperands()
Returns the child operands.
|
List<RelOptRuleOperand> |
RelOptRule.getOperands()
Returns a flattened list of operands of this rule.
|
| Modifier and Type | Method and Description |
|---|---|
private List<RelOptRuleOperand> |
RelOptRule.flattenOperands(RelOptRuleOperand rootOperand)
Creates a flattened list of this operand and its descendants in prefix
order.
|
private void |
RelOptRule.flattenRecurse(List<RelOptRuleOperand> operandList,
RelOptRuleOperand parentOperand)
Adds the operand and its descendants to the list in prefix order.
|
static <R extends RelNode> |
RelOptRule.operand(Class<R> clazz,
RelOptRuleOperand first,
RelOptRuleOperand... rest)
Creates an operand that matches a relational expression with a given
list of children.
|
static <R extends RelNode> |
RelOptRule.operand(Class<R> clazz,
RelOptRuleOperand first,
RelOptRuleOperand... rest)
Creates an operand that matches a relational expression with a given
list of children.
|
static <R extends RelNode> |
RelOptRule.operand(Class<R> clazz,
RelTrait trait,
com.google.common.base.Predicate<? super R> predicate,
RelOptRuleOperand first,
RelOptRuleOperand... rest)
Creates an operand that matches a relational expression that has no
children.
|
static <R extends RelNode> |
RelOptRule.operand(Class<R> clazz,
RelTrait trait,
com.google.common.base.Predicate<? super R> predicate,
RelOptRuleOperand first,
RelOptRuleOperand... rest)
Creates an operand that matches a relational expression that has no
children.
|
void |
RelOptRuleOperand.setParent(RelOptRuleOperand parent)
Sets the parent operand.
|
static RelOptRuleOperandChildren |
RelOptRule.some(RelOptRuleOperand first,
RelOptRuleOperand... rest)
Creates a list of child operands that matches child relational
expressions in the order they appear.
|
static RelOptRuleOperandChildren |
RelOptRule.some(RelOptRuleOperand first,
RelOptRuleOperand... rest)
Creates a list of child operands that matches child relational
expressions in the order they appear.
|
static RelOptRuleOperandChildren |
RelOptRule.unordered(RelOptRuleOperand first,
RelOptRuleOperand... rest)
Creates a list of child operands that matches child relational
expressions in any order.
|
static RelOptRuleOperandChildren |
RelOptRule.unordered(RelOptRuleOperand first,
RelOptRuleOperand... rest)
Creates a list of child operands that matches child relational
expressions in any order.
|
| Modifier and Type | Method and Description |
|---|---|
private void |
RelOptRule.flattenRecurse(List<RelOptRuleOperand> operandList,
RelOptRuleOperand parentOperand)
Adds the operand and its descendants to the list in prefix order.
|
| Constructor and Description |
|---|
CommonRelSubExprRule(RelOptRuleOperand operand)
Creates a
CommonRelSubExprRule. |
RelOptRule(RelOptRuleOperand operand)
Creates a rule.
|
RelOptRule(RelOptRuleOperand operand,
RelBuilderFactory relBuilderFactory,
String description)
Creates a rule with an explicit description.
|
RelOptRule(RelOptRuleOperand operand,
String description)
Creates a rule with an explicit description.
|
RelOptRuleCall(RelOptPlanner planner,
RelOptRuleOperand operand,
RelNode[] rels,
Map<RelNode,List<RelNode>> nodeInputs) |
RelOptRuleCall(RelOptPlanner planner,
RelOptRuleOperand operand,
RelNode[] rels,
Map<RelNode,List<RelNode>> nodeInputs,
List<RelNode> parents)
Creates a RelOptRuleCall.
|
| Constructor and Description |
|---|
RelOptRuleOperand(Class<R> clazz,
RelTrait trait,
com.google.common.base.Predicate<? super R> predicate,
RelOptRuleOperandChildPolicy childPolicy,
com.google.common.collect.ImmutableList<RelOptRuleOperand> children)
Private constructor.
|
RelOptRuleOperandChildren(RelOptRuleOperandChildPolicy policy,
List<RelOptRuleOperand> operands) |
| Modifier and Type | Method and Description |
|---|---|
private boolean |
HepPlanner.matchOperands(RelOptRuleOperand operand,
RelNode rel,
List<RelNode> bindings,
Map<RelNode,List<RelNode>> nodeChildren) |
| Constructor and Description |
|---|
HepRuleCall(RelOptPlanner planner,
RelOptRuleOperand operand,
RelNode[] rels,
Map<RelNode,List<RelNode>> nodeChildren,
List<RelNode> parents) |
| Modifier and Type | Field and Description |
|---|---|
private com.google.common.collect.Multimap<Class<? extends RelNode>,RelOptRuleOperand> |
VolcanoPlanner.classOperands
Operands that apply to a given class of
RelNode. |
| Modifier and Type | Method and Description |
|---|---|
private void |
RuleQueue.checkDuplicateSubsets(Deque<RelSubset> subsets,
RelOptRuleOperand operand,
RelNode[] rels)
Recursively checks whether there are any duplicate subsets along any path
from root of the operand tree to one of the leaves.
|
| Constructor and Description |
|---|
DeferringRuleCall(VolcanoPlanner planner,
RelOptRuleOperand operand) |
VolcanoRuleCall(VolcanoPlanner planner,
RelOptRuleOperand operand)
Creates a rule call.
|
VolcanoRuleCall(VolcanoPlanner planner,
RelOptRuleOperand operand,
RelNode[] rels,
Map<RelNode,List<RelNode>> nodeInputs)
Creates a rule call, internal, with array to hold bindings.
|
VolcanoRuleMatch(VolcanoPlanner volcanoPlanner,
RelOptRuleOperand operand0,
RelNode[] rels,
Map<RelNode,List<RelNode>> nodeInputs)
Creates a
VolcanoRuleMatch. |
| Constructor and Description |
|---|
AbstractJoinExtractFilterRule(RelOptRuleOperand operand,
RelBuilderFactory relBuilderFactory,
String description)
Creates an AbstractJoinExtractFilterRule.
|
AbstractMaterializedViewRule(RelOptRuleOperand operand,
RelBuilderFactory relBuilderFactory,
String description,
boolean generateUnionRewriting,
HepProgram unionRewritingPullProgram,
boolean fastBailOut)
Creates a AbstractMaterializedViewRule.
|
AggregateExtractProjectRule(RelOptRuleOperand operand,
RelBuilderFactory builderFactory) |
AggregateFilterTransposeRule(RelOptRuleOperand operand,
RelBuilderFactory relBuilderFactory)
Creates an AggregateFilterTransposeRule.
|
AggregateReduceFunctionsRule(RelOptRuleOperand operand,
RelBuilderFactory relBuilderFactory)
Creates an AggregateReduceFunctionsRule.
|
AggregateStarTableRule(RelOptRuleOperand operand,
RelBuilderFactory relBuilderFactory,
String description)
Creates an AggregateStarTableRule.
|
FilterAggregateTransposeRule(RelOptRuleOperand operand,
RelBuilderFactory builderFactory) |
FilterJoinRule(RelOptRuleOperand operand,
String id,
boolean smart,
RelBuilderFactory relBuilderFactory,
FilterJoinRule.Predicate predicate)
Creates a FilterProjectTransposeRule with an explicit root operand and
factories.
|
FilterJoinRule(RelOptRuleOperand operand,
String id,
boolean smart,
RelFactories.FilterFactory filterFactory,
RelFactories.ProjectFactory projectFactory)
Deprecated.
|
FilterJoinRule(RelOptRuleOperand operand,
String id,
boolean smart,
RelFactories.FilterFactory filterFactory,
RelFactories.ProjectFactory projectFactory,
FilterJoinRule.Predicate predicate)
Deprecated.
|
FilterProjectTransposeRule(RelOptRuleOperand operand,
boolean copyFilter,
boolean copyProject,
RelBuilderFactory relBuilderFactory) |
FilterTableScanRule(RelOptRuleOperand operand,
RelBuilderFactory relBuilderFactory,
String description)
Creates a FilterTableScanRule.
|
FilterTableScanRule(RelOptRuleOperand operand,
String description)
Deprecated.
|
JoinProjectTransposeRule(RelOptRuleOperand operand,
String description)
Creates a JoinProjectTransposeRule with default factory.
|
JoinProjectTransposeRule(RelOptRuleOperand operand,
String description,
boolean includeOuter,
RelBuilderFactory relBuilderFactory)
Creates a JoinProjectTransposeRule.
|
JoinProjectTransposeRule(RelOptRuleOperand operand,
String description,
boolean includeOuter,
RelFactories.ProjectFactory projectFactory)
Deprecated.
|
JoinProjectTransposeRule(RelOptRuleOperand operand,
String description,
RelFactories.ProjectFactory projectFactory)
Deprecated.
|
JoinUnionTransposeRule(RelOptRuleOperand operand,
RelBuilderFactory relBuilderFactory,
String description)
Creates a JoinUnionTransposeRule.
|
MaterializedViewAggregateRule(RelOptRuleOperand operand,
RelBuilderFactory relBuilderFactory,
String description,
boolean generateUnionRewriting,
HepProgram unionRewritingPullProgram)
Creates a MaterializedViewAggregateRule.
|
MaterializedViewJoinRule(RelOptRuleOperand operand,
RelBuilderFactory relBuilderFactory,
String description,
boolean generateUnionRewriting,
HepProgram unionRewritingPullProgram,
boolean fastBailOut)
Creates a MaterializedViewJoinRule.
|
MultiJoinProjectTransposeRule(RelOptRuleOperand operand,
RelBuilderFactory relBuilderFactory,
String description)
Creates a MultiJoinProjectTransposeRule.
|
MultiJoinProjectTransposeRule(RelOptRuleOperand operand,
String description)
Deprecated.
|
ProjectFilterTransposeRule(RelOptRuleOperand operand,
PushProjector.ExprCondition preserveExprCondition,
RelBuilderFactory relBuilderFactory) |
ProjectSortTransposeRule(RelOptRuleOperand operand)
Deprecated.
|
ProjectSortTransposeRule(RelOptRuleOperand operand,
RelBuilderFactory relBuilderFactory,
String description)
Creates a ProjectSortTransposeRule with an operand.
|
ProjectTableScanRule(RelOptRuleOperand operand,
RelBuilderFactory relBuilderFactory,
String description)
Creates a ProjectTableScanRule.
|
ProjectToWindowRule(RelOptRuleOperand operand,
RelBuilderFactory relBuilderFactory,
String description)
Creates a ProjectToWindowRule.
|
SortProjectTransposeRule(RelOptRuleOperand operand)
Deprecated.
|
SortProjectTransposeRule(RelOptRuleOperand operand,
RelBuilderFactory relBuilderFactory,
String description)
Creates a SortProjectTransposeRule with an operand.
|
SubQueryRemoveRule(RelOptRuleOperand operand,
RelBuilderFactory relBuilderFactory,
String description)
Creates a SubQueryRemoveRule.
|
ValuesReduceRule(RelOptRuleOperand operand,
RelBuilderFactory relBuilderFactory,
String desc)
Creates a ValuesReduceRule.
|
Copyright © 2012–2018 The Apache Software Foundation. All rights reserved.