Search in sources :

Example 1 with BeamMatchRel

use of org.apache.beam.sdk.extensions.sql.impl.rel.BeamMatchRel in project beam by apache.

the class BeamMatchRule method convert.

@Override
public RelNode convert(RelNode rel) {
    Match match = (Match) rel;
    final RelNode input = match.getInput();
    return new BeamMatchRel(match.getCluster(), match.getTraitSet().replace(BeamLogicalConvention.INSTANCE), convert(input, input.getTraitSet().replace(BeamLogicalConvention.INSTANCE)), match.getRowType(), match.getPattern(), match.isStrictStart(), match.isStrictEnd(), match.getPatternDefinitions(), match.getMeasures(), match.getAfter(), match.getSubsets(), match.isAllRows(), match.getPartitionKeys(), match.getOrderKeys(), match.getInterval());
}
Also used : RelNode(org.apache.beam.vendor.calcite.v1_28_0.org.apache.calcite.rel.RelNode) BeamMatchRel(org.apache.beam.sdk.extensions.sql.impl.rel.BeamMatchRel) Match(org.apache.beam.vendor.calcite.v1_28_0.org.apache.calcite.rel.core.Match) LogicalMatch(org.apache.beam.vendor.calcite.v1_28_0.org.apache.calcite.rel.logical.LogicalMatch)

Aggregations

BeamMatchRel (org.apache.beam.sdk.extensions.sql.impl.rel.BeamMatchRel)1 RelNode (org.apache.beam.vendor.calcite.v1_28_0.org.apache.calcite.rel.RelNode)1 Match (org.apache.beam.vendor.calcite.v1_28_0.org.apache.calcite.rel.core.Match)1 LogicalMatch (org.apache.beam.vendor.calcite.v1_28_0.org.apache.calcite.rel.logical.LogicalMatch)1