Search in sources :

Example 1 with StreamsCalcRel

use of org.apache.storm.sql.planner.streams.rel.StreamsCalcRel in project storm by apache.

the class StreamsCalcRule method convert.

@Override
public RelNode convert(RelNode rel) {
    final Calc calc = (Calc) rel;
    final RelNode input = calc.getInput();
    return new StreamsCalcRel(calc.getCluster(), calc.getTraitSet().replace(StreamsLogicalConvention.INSTANCE), convert(input, input.getTraitSet().replace(StreamsLogicalConvention.INSTANCE)), calc.getProgram());
}
Also used : StreamsCalcRel(org.apache.storm.sql.planner.streams.rel.StreamsCalcRel) RelNode(org.apache.calcite.rel.RelNode) LogicalCalc(org.apache.calcite.rel.logical.LogicalCalc) Calc(org.apache.calcite.rel.core.Calc)

Aggregations

RelNode (org.apache.calcite.rel.RelNode)1 Calc (org.apache.calcite.rel.core.Calc)1 LogicalCalc (org.apache.calcite.rel.logical.LogicalCalc)1 StreamsCalcRel (org.apache.storm.sql.planner.streams.rel.StreamsCalcRel)1