Java Code Examples for org.apache.calcite.rel.core.RelFactories#FilterFactory
The following examples show how to use
org.apache.calcite.rel.core.RelFactories#FilterFactory .
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: SemiJoinFilterTransposeRule.java From Bats with Apache License 2.0 | 6 votes |
public void onMatch(RelOptRuleCall call) { SemiJoin semiJoin = call.rel(0); LogicalFilter filter = call.rel(1); RelNode newSemiJoin = SemiJoin.create(filter.getInput(), semiJoin.getRight(), semiJoin.getCondition(), semiJoin.getLeftKeys(), semiJoin.getRightKeys()); final RelFactories.FilterFactory factory = RelFactories.DEFAULT_FILTER_FACTORY; RelNode newFilter = factory.createFilter(newSemiJoin, filter.getCondition()); call.transformTo(newFilter); }
Example 2
Source File: FlinkSemiAntiJoinFilterTransposeRule.java From flink with Apache License 2.0 | 6 votes |
public void onMatch(RelOptRuleCall call) { LogicalJoin join = call.rel(0); LogicalFilter filter = call.rel(1); RelNode newJoin = LogicalJoin.create( filter.getInput(), join.getRight(), join.getCondition(), join.getVariablesSet(), join.getJoinType()); final RelFactories.FilterFactory factory = RelFactories.DEFAULT_FILTER_FACTORY; RelNode newFilter = factory.createFilter(newJoin, filter.getCondition()); call.transformTo(newFilter); }
Example 3
Source File: FlinkFilterJoinRule.java From flink with Apache License 2.0 | 5 votes |
/** * Creates a FlinkFilterJoinRule with an explicit root operand and * factories. */ @Deprecated // to be removed before 2.0 protected FlinkFilterJoinRule(RelOptRuleOperand operand, String id, boolean smart, RelFactories.FilterFactory filterFactory, RelFactories.ProjectFactory projectFactory) { this(operand, id, smart, RelBuilder.proto(filterFactory, projectFactory), TRUE_PREDICATE); }
Example 4
Source File: FlinkFilterJoinRule.java From flink with Apache License 2.0 | 5 votes |
@Deprecated // to be removed before 2.0 public FlinkFilterIntoJoinRule(boolean smart, RelFactories.FilterFactory filterFactory, RelFactories.ProjectFactory projectFactory, Predicate predicate) { this(smart, RelBuilder.proto(filterFactory, projectFactory), predicate); }
Example 5
Source File: DrillMergeFilterRule.java From Bats with Apache License 2.0 | 5 votes |
/** * Creates a MergeFilterRule. */ private DrillMergeFilterRule(RelFactories.FilterFactory filterFactory) { super( operand(Filter.class, operand(Filter.class, any()))); this.filterFactory = filterFactory; }
Example 6
Source File: FlinkFilterJoinRule.java From flink with Apache License 2.0 | 5 votes |
@Deprecated // to be removed before 2.0 public FlinkFilterIntoJoinRule(boolean smart, RelFactories.FilterFactory filterFactory, RelFactories.ProjectFactory projectFactory, Predicate predicate) { this(smart, RelBuilder.proto(filterFactory, projectFactory), predicate); }
Example 7
Source File: FilterJoinRule.java From calcite with Apache License 2.0 | 5 votes |
/** * Creates a FilterJoinRule with an explicit root operand and * factories. */ @Deprecated // to be removed before 2.0 protected FilterJoinRule(RelOptRuleOperand operand, String id, boolean smart, RelFactories.FilterFactory filterFactory, RelFactories.ProjectFactory projectFactory, Predicate predicate) { this(operand, id, smart, RelBuilder.proto(filterFactory, projectFactory), predicate); }
Example 8
Source File: FlinkFilterJoinRule.java From flink with Apache License 2.0 | 5 votes |
/** * Creates a FlinkFilterJoinRule with an explicit root operand and * factories. */ @Deprecated // to be removed before 2.0 protected FlinkFilterJoinRule(RelOptRuleOperand operand, String id, boolean smart, RelFactories.FilterFactory filterFactory, RelFactories.ProjectFactory projectFactory) { this(operand, id, smart, RelBuilder.proto(filterFactory, projectFactory), TRUE_PREDICATE); }
Example 9
Source File: FlinkFilterJoinRule.java From flink with Apache License 2.0 | 5 votes |
/** * Creates a FilterProjectTransposeRule with an explicit root operand and * factories. */ @Deprecated // to be removed before 2.0 protected FlinkFilterJoinRule(RelOptRuleOperand operand, String id, boolean smart, RelFactories.FilterFactory filterFactory, RelFactories.ProjectFactory projectFactory, Predicate predicate) { this(operand, id, smart, RelBuilder.proto(filterFactory, projectFactory), predicate); }
Example 10
Source File: FlinkFilterJoinRule.java From flink with Apache License 2.0 | 5 votes |
/** * Creates a FilterProjectTransposeRule with an explicit root operand and * factories. */ @Deprecated // to be removed before 2.0 protected FlinkFilterJoinRule(RelOptRuleOperand operand, String id, boolean smart, RelFactories.FilterFactory filterFactory, RelFactories.ProjectFactory projectFactory, Predicate predicate) { this(operand, id, smart, RelBuilder.proto(filterFactory, projectFactory), predicate); }
Example 11
Source File: FilterJoinRule.java From Bats with Apache License 2.0 | 5 votes |
@Deprecated // to be removed before 2.0 public FilterIntoJoinRule(boolean smart, RelFactories.FilterFactory filterFactory, RelFactories.ProjectFactory projectFactory, Predicate predicate) { this(smart, RelBuilder.proto(filterFactory, projectFactory), predicate); }
Example 12
Source File: FilterProjectTransposeRule.java From calcite with Apache License 2.0 | 5 votes |
@Deprecated // to be removed before 2.0 public FilterProjectTransposeRule( Class<? extends Filter> filterClass, RelFactories.FilterFactory filterFactory, Class<? extends Project> projectClass, RelFactories.ProjectFactory projectFactory) { this(filterClass, filter -> !RexUtil.containsCorrelation(filter.getCondition()), projectClass, project -> true, filterFactory == null, projectFactory == null, RelBuilder.proto(filterFactory, projectFactory)); }
Example 13
Source File: RelFieldTrimmer.java From Bats with Apache License 2.0 | 5 votes |
@Deprecated // to be removed before 2.0 public RelFieldTrimmer(SqlValidator validator, RelOptCluster cluster, RelFactories.ProjectFactory projectFactory, RelFactories.FilterFactory filterFactory, RelFactories.JoinFactory joinFactory, RelFactories.SemiJoinFactory semiJoinFactory, RelFactories.SortFactory sortFactory, RelFactories.AggregateFactory aggregateFactory, RelFactories.SetOpFactory setOpFactory) { this(validator, RelBuilder.proto(projectFactory, filterFactory, joinFactory, semiJoinFactory, sortFactory, aggregateFactory, setOpFactory).create(cluster, null)); }
Example 14
Source File: LoptOptimizeJoinRule.java From calcite with Apache License 2.0 | 4 votes |
@Deprecated // to be removed before 2.0 public LoptOptimizeJoinRule(RelFactories.JoinFactory joinFactory, RelFactories.ProjectFactory projectFactory, RelFactories.FilterFactory filterFactory) { this(RelBuilder.proto(joinFactory, projectFactory, filterFactory)); }
Example 15
Source File: JoinPushTransitivePredicatesRule.java From calcite with Apache License 2.0 | 4 votes |
@Deprecated // to be removed before 2.0 public JoinPushTransitivePredicatesRule(Class<? extends Join> clazz, RelFactories.FilterFactory filterFactory) { this(clazz, RelBuilder.proto(Contexts.of(filterFactory))); }
Example 16
Source File: FilterJoinRule.java From calcite with Apache License 2.0 | 4 votes |
@Deprecated // to be removed before 2.0 public JoinConditionPushRule(RelFactories.FilterFactory filterFactory, RelFactories.ProjectFactory projectFactory, Predicate predicate) { this(RelBuilder.proto(filterFactory, projectFactory), predicate); }
Example 17
Source File: FilterSetOpTransposeRule.java From calcite with Apache License 2.0 | 4 votes |
@Deprecated // to be removed before 2.0 public FilterSetOpTransposeRule(RelFactories.FilterFactory filterFactory) { this(RelBuilder.proto(Contexts.of(filterFactory))); }
Example 18
Source File: RelOptUtil.java From calcite with Apache License 2.0 | 4 votes |
@Deprecated // to be removed before 2.0 public static RelNode createFilter(RelNode child, RexNode condition) { final RelFactories.FilterFactory factory = RelFactories.DEFAULT_FILTER_FACTORY; return factory.createFilter(child, condition, ImmutableSet.of()); }
Example 19
Source File: JoinToCorrelateRule.java From Bats with Apache License 2.0 | 4 votes |
@Deprecated // to be removed before 2.0 protected JoinToCorrelateRule(RelFactories.FilterFactory filterFactory) { this(RelBuilder.proto(Contexts.of(filterFactory))); }
Example 20
Source File: FlinkFilterJoinRule.java From flink with Apache License 2.0 | 4 votes |
@Deprecated // to be removed before 2.0 public FlinkJoinConditionPushRule(RelFactories.FilterFactory filterFactory, RelFactories.ProjectFactory projectFactory, Predicate predicate) { this(RelBuilder.proto(filterFactory, projectFactory), predicate); }