use of org.apache.flink.table.planner.plan.nodes.physical.batch.BatchPhysicalTableSourceScan in project flink by apache.
the class PushLocalHashAggIntoScanRule method matches.
@Override
public boolean matches(RelOptRuleCall call) {
BatchPhysicalLocalHashAggregate localAggregate = call.rel(1);
BatchPhysicalTableSourceScan tableSourceScan = call.rel(2);
return canPushDown(call, localAggregate, tableSourceScan);
}
use of org.apache.flink.table.planner.plan.nodes.physical.batch.BatchPhysicalTableSourceScan in project flink by apache.
the class PushLocalHashAggIntoScanRule method onMatch.
@Override
public void onMatch(RelOptRuleCall call) {
BatchPhysicalLocalHashAggregate localHashAgg = call.rel(1);
BatchPhysicalTableSourceScan oldScan = call.rel(2);
pushLocalAggregateIntoScan(call, localHashAgg, oldScan);
}
use of org.apache.flink.table.planner.plan.nodes.physical.batch.BatchPhysicalTableSourceScan in project flink by apache.
the class PushLocalSortAggIntoScanRule method onMatch.
@Override
public void onMatch(RelOptRuleCall call) {
BatchPhysicalLocalSortAggregate localHashAgg = call.rel(1);
BatchPhysicalTableSourceScan oldScan = call.rel(2);
pushLocalAggregateIntoScan(call, localHashAgg, oldScan);
}
use of org.apache.flink.table.planner.plan.nodes.physical.batch.BatchPhysicalTableSourceScan in project flink by apache.
the class PushLocalSortAggIntoScanRule method matches.
@Override
public boolean matches(RelOptRuleCall call) {
BatchPhysicalLocalSortAggregate localAggregate = call.rel(1);
BatchPhysicalTableSourceScan tableSourceScan = call.rel(2);
return canPushDown(call, localAggregate, tableSourceScan);
}
use of org.apache.flink.table.planner.plan.nodes.physical.batch.BatchPhysicalTableSourceScan in project flink by apache.
the class PushLocalSortAggWithSortAndCalcIntoScanRule method onMatch.
@Override
public void onMatch(RelOptRuleCall call) {
BatchPhysicalGroupAggregateBase localSortAgg = call.rel(1);
BatchPhysicalCalc calc = call.rel(3);
BatchPhysicalTableSourceScan oldScan = call.rel(4);
int[] calcRefFields = getRefFiledIndex(calc);
pushLocalAggregateIntoScan(call, localSortAgg, oldScan, calcRefFields);
}
Aggregations