Class DruidUnionDataSourceRule
java.lang.Object
org.apache.calcite.plan.RelOptRule
org.apache.druid.sql.calcite.rule.DruidUnionDataSourceRule
public class DruidUnionDataSourceRule
extends org.apache.calcite.plan.RelOptRule
Creates a
DruidUnionDataSourceRel from various DruidQueryRel inputs that represent simple
table scans.-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.calcite.plan.RelOptRule
org.apache.calcite.plan.RelOptRule.ConverterRelOptRuleOperand -
Field Summary
Fields inherited from class org.apache.calcite.plan.RelOptRule
description, operands, relBuilderFactory -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanisCompatible(org.apache.calcite.rel.core.Union unionRel, DruidRel<?> first, DruidRel<?> second, PlannerContext plannerContext) booleanmatches(org.apache.calcite.plan.RelOptRuleCall call) voidonMatch(org.apache.calcite.plan.RelOptRuleCall call) Methods inherited from class org.apache.calcite.plan.RelOptRule
any, convert, convert, convert, convert, convertList, convertOperand, convertOperand, equals, equals, getOperand, getOperands, getOutConvention, getOutTrait, hashCode, none, operand, operand, operand, operand, operand, operandJ, operandJ, some, toString, unordered
-
Constructor Details
-
DruidUnionDataSourceRule
-
-
Method Details
-
matches
public boolean matches(org.apache.calcite.plan.RelOptRuleCall call) - Overrides:
matchesin classorg.apache.calcite.plan.RelOptRule
-
onMatch
public void onMatch(org.apache.calcite.plan.RelOptRuleCall call) - Specified by:
onMatchin classorg.apache.calcite.plan.RelOptRule
-
isCompatible
public static boolean isCompatible(org.apache.calcite.rel.core.Union unionRel, DruidRel<?> first, DruidRel<?> second, @Nullable PlannerContext plannerContext)
-