Search in sources :

Example 1 with LimitOperator

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());
}
Also used : RowData(org.apache.flink.table.data.RowData) Transformation(org.apache.flink.api.dag.Transformation) LimitOperator(org.apache.flink.table.runtime.operators.sort.LimitOperator)

Aggregations

Transformation (org.apache.flink.api.dag.Transformation)1 RowData (org.apache.flink.table.data.RowData)1 LimitOperator (org.apache.flink.table.runtime.operators.sort.LimitOperator)1