use of org.apache.flink.table.runtime.operators.sort.LimitOperator in project flink by apache.
the class BatchExecLimit method translateToPlanInternal.
@SuppressWarnings("unchecked")
@Override
protected Transformation<RowData> translateToPlanInternal(PlannerBase planner, ExecNodeConfig config) {
Transformation<RowData> inputTransform = (Transformation<RowData>) getInputEdges().get(0).translateToPlan(planner);
LimitOperator operator = new LimitOperator(isGlobal, limitStart, limitEnd);
return ExecNodeUtil.createOneInputTransformation(inputTransform, createTransformationName(config), createTransformationDescription(config), SimpleOperatorFactory.of(operator), inputTransform.getOutputType(), inputTransform.getParallelism());
}
Aggregations