com.hazelcast.org.apache.calcite.adapter.enumerable.EnumerableRules Maven / Gradle / Ivy
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to you under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.hazelcast.org.apache.calcite.adapter.enumerable;
import com.hazelcast.org.apache.calcite.plan.RelOptRule;
import com.hazelcast.org.apache.calcite.rel.core.RelFactories;
import com.hazelcast.org.apache.calcite.util.trace.CalciteTrace;
import com.hazelcast.com.google.common.collect.ImmutableList;
import com.hazelcast.org.slf4j.Logger;
import java.util.List;
/**
* Rules and relational operators for the
* {@link EnumerableConvention enumerable calling convention}.
*/
public class EnumerableRules {
protected static final Logger LOGGER = CalciteTrace.getPlannerTracer();
public static final boolean BRIDGE_METHODS = true;
private EnumerableRules() {
}
public static final RelOptRule ENUMERABLE_JOIN_RULE =
new EnumerableJoinRule();
public static final RelOptRule ENUMERABLE_MERGE_JOIN_RULE =
new EnumerableMergeJoinRule();
public static final RelOptRule ENUMERABLE_CORRELATE_RULE =
new EnumerableCorrelateRule(RelFactories.LOGICAL_BUILDER);
public static final RelOptRule ENUMERABLE_BATCH_NESTED_LOOP_JOIN_RULE =
new EnumerableBatchNestedLoopJoinRule(RelFactories.LOGICAL_BUILDER);
public static final EnumerableProjectRule ENUMERABLE_PROJECT_RULE =
new EnumerableProjectRule();
public static final EnumerableFilterRule ENUMERABLE_FILTER_RULE =
new EnumerableFilterRule();
public static final EnumerableCalcRule ENUMERABLE_CALC_RULE =
new EnumerableCalcRule();
public static final EnumerableAggregateRule ENUMERABLE_AGGREGATE_RULE =
new EnumerableAggregateRule();
public static final EnumerableSortRule ENUMERABLE_SORT_RULE =
new EnumerableSortRule();
public static final EnumerableLimitRule ENUMERABLE_LIMIT_RULE =
new EnumerableLimitRule();
public static final EnumerableUnionRule ENUMERABLE_UNION_RULE =
new EnumerableUnionRule();
public static final EnumerableRepeatUnionRule ENUMERABLE_REPEAT_UNION_RULE =
new EnumerableRepeatUnionRule();
public static final EnumerableTableSpoolRule ENUMERABLE_TABLE_SPOOL_RULE =
new EnumerableTableSpoolRule();
public static final EnumerableIntersectRule ENUMERABLE_INTERSECT_RULE =
new EnumerableIntersectRule();
public static final EnumerableMinusRule ENUMERABLE_MINUS_RULE =
new EnumerableMinusRule();
public static final EnumerableTableModifyRule ENUMERABLE_TABLE_MODIFICATION_RULE =
new EnumerableTableModifyRule(RelFactories.LOGICAL_BUILDER);
public static final EnumerableValuesRule ENUMERABLE_VALUES_RULE =
new EnumerableValuesRule(RelFactories.LOGICAL_BUILDER);
public static final EnumerableWindowRule ENUMERABLE_WINDOW_RULE =
new EnumerableWindowRule();
public static final EnumerableCollectRule ENUMERABLE_COLLECT_RULE =
new EnumerableCollectRule();
public static final EnumerableUncollectRule ENUMERABLE_UNCOLLECT_RULE =
new EnumerableUncollectRule();
public static final EnumerableFilterToCalcRule ENUMERABLE_FILTER_TO_CALC_RULE =
new EnumerableFilterToCalcRule(RelFactories.LOGICAL_BUILDER);
public static final EnumerableProjectToCalcRule ENUMERABLE_PROJECT_TO_CALC_RULE =
new EnumerableProjectToCalcRule(RelFactories.LOGICAL_BUILDER);
public static final EnumerableTableScanRule ENUMERABLE_TABLE_SCAN_RULE =
new EnumerableTableScanRule(RelFactories.LOGICAL_BUILDER);
public static final EnumerableTableFunctionScanRule ENUMERABLE_TABLE_FUNCTION_SCAN_RULE =
new EnumerableTableFunctionScanRule(RelFactories.LOGICAL_BUILDER);
public static final EnumerableMatchRule ENUMERABLE_MATCH_RULE =
new EnumerableMatchRule();
public static final EnumerableSortedAggregateRule ENUMERABLE_SORTED_AGGREGATE_RULE =
new EnumerableSortedAggregateRule();
public static final List ENUMERABLE_RULES = ImmutableList.of(
EnumerableRules.ENUMERABLE_JOIN_RULE,
EnumerableRules.ENUMERABLE_MERGE_JOIN_RULE,
EnumerableRules.ENUMERABLE_CORRELATE_RULE,
EnumerableRules.ENUMERABLE_PROJECT_RULE,
EnumerableRules.ENUMERABLE_FILTER_RULE,
EnumerableRules.ENUMERABLE_CALC_RULE,
EnumerableRules.ENUMERABLE_AGGREGATE_RULE,
EnumerableRules.ENUMERABLE_SORT_RULE,
EnumerableRules.ENUMERABLE_LIMIT_RULE,
EnumerableRules.ENUMERABLE_COLLECT_RULE,
EnumerableRules.ENUMERABLE_UNCOLLECT_RULE,
EnumerableRules.ENUMERABLE_UNION_RULE,
EnumerableRules.ENUMERABLE_REPEAT_UNION_RULE,
EnumerableRules.ENUMERABLE_TABLE_SPOOL_RULE,
EnumerableRules.ENUMERABLE_INTERSECT_RULE,
EnumerableRules.ENUMERABLE_MINUS_RULE,
EnumerableRules.ENUMERABLE_TABLE_MODIFICATION_RULE,
EnumerableRules.ENUMERABLE_VALUES_RULE,
EnumerableRules.ENUMERABLE_WINDOW_RULE,
EnumerableRules.ENUMERABLE_TABLE_SCAN_RULE,
EnumerableRules.ENUMERABLE_TABLE_FUNCTION_SCAN_RULE,
EnumerableRules.ENUMERABLE_MATCH_RULE);
public static List rules() {
return ENUMERABLE_RULES;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy