Java Code Examples for org.apache.calcite.plan.Convention#NONE
The following examples show how to use
org.apache.calcite.plan.Convention#NONE .
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: VolcanoPlanner.java From Bats with Apache License 2.0 | 6 votes |
/** * Finds RelSubsets in the plan that contain only rels of * {@link Convention#NONE} and boosts their importance by 25%. */ private void injectImportanceBoost() { final Set<RelSubset> requireBoost = new HashSet<>(); SUBSET_LOOP: for (RelSubset subset : ruleQueue.subsetImportances.keySet()) { for (RelNode rel : subset.getRels()) { if (rel.getConvention() != Convention.NONE) { continue SUBSET_LOOP; } } requireBoost.add(subset); } ruleQueue.boostImportance(requireBoost, 1.25); }
Example 2
Source File: OLAPAggregateRule.java From kylin-on-parquet-v2 with Apache License 2.0 | 4 votes |
public OLAPAggregateRule() { super(LogicalAggregate.class, Convention.NONE, OLAPRel.CONVENTION, "OLAPAggregateRule"); }
Example 3
Source File: ElasticsearchProjectRule.java From dk-fitting with Apache License 2.0 | 4 votes |
private ElasticsearchProjectRule() { super(LogicalProject.class, Convention.NONE, ElasticsearchRelNode.CONVENTION, ElasticsearchProjectRule.class.getSimpleName()); }
Example 4
Source File: ElasticsearchAggregateRule.java From dk-fitting with Apache License 2.0 | 4 votes |
ElasticsearchAggregateRule(){ super(LogicalAggregate.class, Convention.NONE, ElasticsearchRelNode.CONVENTION, ElasticsearchAggregateRule.class.getSimpleName()); }
Example 5
Source File: ElasticsearchJoinRule.java From dk-fitting with Apache License 2.0 | 4 votes |
ElasticsearchJoinRule(){ super(LogicalJoin.class, Convention.NONE, ElasticsearchRelNode.CONVENTION, ElasticsearchJoinRule.class.getSimpleName()); }
Example 6
Source File: ElasticsearchFilterRule.java From dk-fitting with Apache License 2.0 | 4 votes |
ElasticsearchFilterRule(){ super(LogicalFilter.class, Convention.NONE, ElasticsearchRelNode.CONVENTION, ElasticsearchFilterRule.class.getSimpleName()); }
Example 7
Source File: ElasticsearchCalcRule.java From dk-fitting with Apache License 2.0 | 4 votes |
public ElasticsearchCalcRule() { super(LogicalCalc.class, Convention.NONE, ElasticsearchRelNode.CONVENTION, ElasticsearchCalcRule.class.getSimpleName()); }
Example 8
Source File: ElasticsearchJoinRule.java From dk-fitting with Apache License 2.0 | 4 votes |
ElasticsearchJoinRule(){ super(LogicalJoin.class, Convention.NONE, ElasticsearchRelNode.CONVENTION, ElasticsearchJoinRule.class.getSimpleName()); }
Example 9
Source File: ElasticsearchProjectRule.java From dk-fitting with Apache License 2.0 | 4 votes |
private ElasticsearchProjectRule() { super(LogicalProject.class, Convention.NONE, ElasticsearchRelNode.CONVENTION, ElasticsearchProjectRule.class.getSimpleName()); }
Example 10
Source File: ElasticsearchAggregateRule.java From dk-fitting with Apache License 2.0 | 4 votes |
ElasticsearchAggregateRule(){ super(LogicalAggregate.class, Convention.NONE, ElasticsearchRelNode.CONVENTION, ElasticsearchAggregateRule.class.getSimpleName()); }
Example 11
Source File: OLAPProjectRule.java From kylin-on-parquet-v2 with Apache License 2.0 | 4 votes |
public OLAPProjectRule() { super(LogicalProject.class, RelOptUtil.PROJECT_PREDICATE, Convention.NONE, OLAPRel.CONVENTION, "OLAPProjectRule"); }
Example 12
Source File: ReduceDecimalsRule.java From Bats with Apache License 2.0 | 4 votes |
@Override public Convention getOutConvention() { return Convention.NONE; }
Example 13
Source File: ElasticsearchSortRule.java From dk-fitting with Apache License 2.0 | 4 votes |
ElasticsearchSortRule(){ super(LogicalSort.class, Convention.NONE, ElasticsearchRelNode.CONVENTION, ElasticsearchSortRule.class.getSimpleName()); }
Example 14
Source File: OLAPValuesRule.java From kylin-on-parquet-v2 with Apache License 2.0 | 4 votes |
OLAPValuesRule() { super(LogicalValues.class, Convention.NONE, OLAPRel.CONVENTION, "OLAPValuesRule"); }
Example 15
Source File: OLAPWindowRule.java From kylin-on-parquet-v2 with Apache License 2.0 | 4 votes |
public OLAPWindowRule() { super(Window.class, Convention.NONE, OLAPRel.CONVENTION, "OLAPWindowRule"); }
Example 16
Source File: OLAPSortRule.java From kylin-on-parquet-v2 with Apache License 2.0 | 4 votes |
public OLAPSortRule() { super(Sort.class, Convention.NONE, OLAPRel.CONVENTION, "OLAPSortRule"); }
Example 17
Source File: OLAPUnionRule.java From kylin-on-parquet-v2 with Apache License 2.0 | 4 votes |
public OLAPUnionRule() { super(Union.class, Convention.NONE, OLAPRel.CONVENTION, "OLAPUnionRule"); }
Example 18
Source File: ElasticsearchCalcRule.java From dk-fitting with Apache License 2.0 | 4 votes |
public ElasticsearchCalcRule() { super(LogicalCalc.class, Convention.NONE, ElasticsearchRelNode.CONVENTION, ElasticsearchCalcRule.class.getSimpleName()); }
Example 19
Source File: EnumerableTableModifyExtensionRule.java From kareldb with Apache License 2.0 | 4 votes |
/** * Creates an EnumerableTableModifyRule. * * @param relBuilderFactory Builder for relational expressions */ public EnumerableTableModifyExtensionRule(RelBuilderFactory relBuilderFactory) { super(LogicalTableModify.class, (Predicate<RelNode>) r -> true, Convention.NONE, EnumerableConvention.INSTANCE, relBuilderFactory, "EnumerableTableModificationExtensionRule"); }
Example 20
Source File: CoerceInputsRule.java From Bats with Apache License 2.0 | 4 votes |
@Override public Convention getOutConvention() { return Convention.NONE; }