Package org.apache.calcite.adapter.spark
Class EnumerableToSparkConverterRule
- java.lang.Object
-
- org.apache.calcite.plan.RelOptRule
-
- org.apache.calcite.rel.convert.ConverterRule
-
- org.apache.calcite.adapter.spark.EnumerableToSparkConverterRule
-
public class EnumerableToSparkConverterRule extends ConverterRule
Rule to convert a relational expression fromJdbcConvention
toSpark convention
.
-
-
Field Summary
Fields Modifier and Type Field Description static EnumerableToSparkConverterRule
INSTANCE
-
Fields inherited from class org.apache.calcite.plan.RelOptRule
description, operands, relBuilderFactory
-
-
Constructor Summary
Constructors Constructor Description EnumerableToSparkConverterRule(RelBuilderFactory relBuilderFactory)
Creates an EnumerableToSparkConverterRule.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RelNode
convert(RelNode rel)
Converts a relational expression to the target trait(s) of this rule.-
Methods inherited from class org.apache.calcite.rel.convert.ConverterRule
getInTrait, getOutConvention, getOutTrait, getTraitDef, isGuaranteed, onMatch
-
Methods inherited from class org.apache.calcite.plan.RelOptRule
any, convert, convert, convertList, convertOperand, convertOperand, equals, equals, getOperand, getOperands, hashCode, matches, none, operand, operand, operand, operand, operand, operandJ, operandJ, some, toString, unordered
-
-
-
-
Field Detail
-
INSTANCE
public static final EnumerableToSparkConverterRule INSTANCE
-
-
Constructor Detail
-
EnumerableToSparkConverterRule
public EnumerableToSparkConverterRule(RelBuilderFactory relBuilderFactory)
Creates an EnumerableToSparkConverterRule.- Parameters:
relBuilderFactory
- Builder for relational expressions
-
-
Method Detail
-
convert
public RelNode convert(RelNode rel)
Description copied from class:ConverterRule
Converts a relational expression to the target trait(s) of this rule.Returns null if conversion is not possible.
- Specified by:
convert
in classConverterRule
-
-