Search in sources :

Example 1 with TridentFilterRel

use of org.apache.storm.sql.planner.trident.rel.TridentFilterRel in project storm by apache.

the class TridentFilterRule method convert.

@Override
public RelNode convert(RelNode rel) {
    final Filter filter = (Filter) rel;
    final RelNode input = filter.getInput();
    return new TridentFilterRel(filter.getCluster(), filter.getTraitSet().replace(TridentLogicalConvention.INSTANCE), convert(input, input.getTraitSet().replace(TridentLogicalConvention.INSTANCE)), filter.getCondition());
}
Also used : RelNode(org.apache.calcite.rel.RelNode) LogicalFilter(org.apache.calcite.rel.logical.LogicalFilter) Filter(org.apache.calcite.rel.core.Filter) TridentFilterRel(org.apache.storm.sql.planner.trident.rel.TridentFilterRel)

Aggregations

RelNode (org.apache.calcite.rel.RelNode)1 Filter (org.apache.calcite.rel.core.Filter)1 LogicalFilter (org.apache.calcite.rel.logical.LogicalFilter)1 TridentFilterRel (org.apache.storm.sql.planner.trident.rel.TridentFilterRel)1