Java Code Examples for org.apache.calcite.plan.RelOptRule#operand()
The following examples show how to use
org.apache.calcite.plan.RelOptRule#operand() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: TraitPropagationTest.java From calcite with Apache License 2.0 | 5 votes |
private PhysProjRule(boolean subsetHack) { super( RelOptRule.operand(LogicalProject.class, anyChild(RelNode.class)), "PhysProj"); this.subsetHack = subsetHack; }
Example 2
Source File: CompositeFilterJoinRule.java From dremio-oss with Apache License 2.0 | 4 votes |
private NoFilter() { super(RelOptRule.operand(LogicalJoin.class, RelOptRule.any()), "CompositeFilterJoinRule:no-filter"); }
Example 3
Source File: FilterJoinRule.java From calcite with Apache License 2.0 | 4 votes |
public JoinConditionPushRule(RelBuilderFactory relBuilderFactory, Predicate predicate) { super(RelOptRule.operand(Join.class, RelOptRule.any()), "FilterJoinRule:no-filter", true, relBuilderFactory, predicate); }
Example 4
Source File: FlinkFilterJoinRule.java From flink with Apache License 2.0 | 4 votes |
public FlinkJoinConditionPushRule(RelBuilderFactory relBuilderFactory, Predicate predicate) { super(RelOptRule.operand(Join.class, RelOptRule.any()), "FlinkFilterJoinRule:no-filter", true, relBuilderFactory, predicate); }
Example 5
Source File: RelOptHelper.java From dremio-oss with Apache License 2.0 | 4 votes |
public static RelOptRuleOperand some(Class<? extends RelNode> rel, RelTrait trait, RelOptRuleOperand first, RelOptRuleOperand... rest){ return RelOptRule.operand(rel, trait, RelOptRule.some(first, rest)); }
Example 6
Source File: RelOptHelper.java From dremio-oss with Apache License 2.0 | 4 votes |
public static RelOptRuleOperand some(Class<? extends RelNode> rel, RelOptRuleOperand first, RelOptRuleOperand... rest){ return RelOptRule.operand(rel, RelOptRule.some(first, rest)); }
Example 7
Source File: RelOptHelper.java From dremio-oss with Apache License 2.0 | 4 votes |
public static RelOptRuleOperand any(Class<? extends RelNode> first, Class<? extends RelNode> second) { return RelOptRule.operand(first, RelOptRule.operand(second, RelOptRule.any())); }
Example 8
Source File: TraitPropagationTest.java From calcite with Apache License 2.0 | 4 votes |
public static RelOptRuleOperand anyChild(Class<? extends RelNode> first) { return RelOptRule.operand(first, RelOptRule.any()); }
Example 9
Source File: RelOptHelper.java From dremio-oss with Apache License 2.0 | 4 votes |
public static RelOptRuleOperand any(Class<? extends RelNode> first, RelTrait trait){ return RelOptRule.operand(first, trait, RelOptRule.any()); }
Example 10
Source File: CompositeFilterJoinRule.java From dremio-oss with Apache License 2.0 | 4 votes |
private WithFilter() { super(RelOptRule.operand(LogicalFilter.class, RelOptRule.operand(LogicalJoin.class, RelOptRule.any())), "CompositeFilterJoinRule:filter"); }
Example 11
Source File: FilterJoinRule.java From Bats with Apache License 2.0 | 4 votes |
public JoinConditionPushRule(RelBuilderFactory relBuilderFactory, Predicate predicate) { super(RelOptRule.operand(Join.class, RelOptRule.any()), "FilterJoinRule:no-filter", true, relBuilderFactory, predicate); }
Example 12
Source File: PlannerPhase.java From dremio-oss with Apache License 2.0 | 4 votes |
public JoinConditionPushRule() { super(RelOptRule.operand(LogicalJoin.class, RelOptRule.any()), "FilterJoinRule:no-filter", true, DremioRelFactories.CALCITE_LOGICAL_BUILDER, FilterJoinRulesUtil.EQUAL_IS_NOT_DISTINCT_FROM); }
Example 13
Source File: PlannerPhase.java From dremio-oss with Apache License 2.0 | 4 votes |
private LogicalFilterJoinRule() { super(RelOptRule.operand(LogicalFilter.class, RelOptRule.operand(LogicalJoin.class, RelOptRule.any())), "FilterJoinRule:filter", true, DremioRelFactories.CALCITE_LOGICAL_BUILDER, FilterJoinRulesUtil.EQUAL_IS_NOT_DISTINCT_FROM); }
Example 14
Source File: FlinkFilterJoinRule.java From flink with Apache License 2.0 | 4 votes |
public FlinkJoinConditionPushRule(RelBuilderFactory relBuilderFactory, Predicate predicate) { super(RelOptRule.operand(Join.class, RelOptRule.any()), "FlinkFilterJoinRule:no-filter", true, relBuilderFactory, predicate); }
Example 15
Source File: FlinkFilterJoinRule.java From flink with Apache License 2.0 | 4 votes |
public FlinkJoinConditionPushRule(RelBuilderFactory relBuilderFactory, Predicate predicate) { super(RelOptRule.operand(Join.class, RelOptRule.any()), "FlinkFilterJoinRule:no-filter", true, relBuilderFactory, predicate); }
Example 16
Source File: RelOptHelper.java From Bats with Apache License 2.0 | 4 votes |
public static RelOptRuleOperand some(Class<? extends RelNode> rel, RelTrait trait, RelOptRuleOperand first, RelOptRuleOperand... rest){ return RelOptRule.operand(rel, trait, RelOptRule.some(first, rest)); }
Example 17
Source File: RelOptHelper.java From Bats with Apache License 2.0 | 4 votes |
public static RelOptRuleOperand some(Class<? extends RelNode> rel, RelOptRuleOperand first, RelOptRuleOperand... rest){ return RelOptRule.operand(rel, RelOptRule.some(first, rest)); }
Example 18
Source File: RelOptHelper.java From Bats with Apache License 2.0 | 4 votes |
public static RelOptRuleOperand any(Class<? extends RelNode> first, Class<? extends RelNode> second) { return RelOptRule.operand(first, RelOptRule.operand(second, RelOptRule.any())); }
Example 19
Source File: RelOptHelper.java From Bats with Apache License 2.0 | 4 votes |
public static RelOptRuleOperand any(Class<? extends RelNode> first){ return RelOptRule.operand(first, RelOptRule.any()); }
Example 20
Source File: RelOptHelper.java From Bats with Apache License 2.0 | 4 votes |
public static RelOptRuleOperand any(Class<? extends RelNode> first, RelTrait trait){ return RelOptRule.operand(first, trait, RelOptRule.any()); }