Package org.apache.calcite.adapter.spark
Class JdbcToSparkConverterRule
- java.lang.Object
-
- org.apache.calcite.plan.RelOptRule
-
- org.apache.calcite.rel.convert.ConverterRule
-
- org.apache.calcite.adapter.spark.JdbcToSparkConverterRule
-
public class JdbcToSparkConverterRule extends ConverterRule
Rule to convert a relational expression fromJdbcConvention
toSpark convention
.
-
-
Field Summary
-
Fields inherited from class org.apache.calcite.plan.RelOptRule
description, operands, relBuilderFactory
-
-
Constructor Summary
Constructors Constructor Description JdbcToSparkConverterRule(JdbcConvention out, RelBuilderFactory relBuilderFactory)
Creates a JdbcToSparkConverterRule.
-
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
-
-
-
-
Constructor Detail
-
JdbcToSparkConverterRule
public JdbcToSparkConverterRule(JdbcConvention out, RelBuilderFactory relBuilderFactory)
Creates a JdbcToSparkConverterRule.
-
-
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
-
-