T - The type of the DataSet with locally sorted partitions.public class SortPartitionOperator<T> extends SingleInputOperator<T,T,SortPartitionOperator<T>>
name, parallelism| Constructor and Description |
|---|
SortPartitionOperator(DataSet<T> dataSet,
int sortField,
org.apache.flink.api.common.operators.Order sortOrder,
String sortLocationName) |
SortPartitionOperator(DataSet<T> dataSet,
String sortField,
org.apache.flink.api.common.operators.Order sortOrder,
String sortLocationName) |
| Modifier and Type | Method and Description |
|---|---|
SortPartitionOperator<T> |
sortPartition(int field,
org.apache.flink.api.common.operators.Order order)
Appends an additional sort order with the specified field in the specified order to the
local partition sorting of the DataSet.
|
SortPartitionOperator<T> |
sortPartition(String field,
org.apache.flink.api.common.operators.Order order)
Appends an additional sort order with the specified field in the specified order to the
local partition sorting of the DataSet.
|
protected org.apache.flink.api.common.operators.SingleInputOperator<?,T,?> |
translateToDataFlow(org.apache.flink.api.common.operators.Operator<T> input)
Translates this operation to a data flow operator of the common data flow API.
|
getInput, getInputTypegetName, getParallelism, getResultType, name, setParallelismaggregate, checkSameExecutionContext, clean, coGroup, collect, combineGroup, count, cross, crossWithHuge, crossWithTiny, distinct, distinct, distinct, distinct, fillInType, filter, first, flatMap, getExecutionEnvironment, getType, groupBy, groupBy, groupBy, iterate, iterateDelta, join, join, joinWithHuge, joinWithTiny, map, mapPartition, max, maxBy, min, minBy, output, partitionByHash, partitionByHash, partitionByHash, partitionCustom, partitionCustom, partitionCustom, print, print, printOnTaskManager, printToErr, printToErr, project, rebalance, reduce, reduceGroup, runOperation, sum, union, write, write, writeAsCsv, writeAsCsv, writeAsCsv, writeAsCsv, writeAsFormattedText, writeAsFormattedText, writeAsText, writeAsTextpublic SortPartitionOperator(DataSet<T> dataSet, int sortField, org.apache.flink.api.common.operators.Order sortOrder, String sortLocationName)
public SortPartitionOperator<T> sortPartition(int field, org.apache.flink.api.common.operators.Order order)
sortPartition in class DataSet<T>field - The field index of the additional sort order of the local partition sorting.order - The order of the additional sort order of the local partition sorting.public SortPartitionOperator<T> sortPartition(String field, org.apache.flink.api.common.operators.Order order)
sortPartition in class DataSet<T>field - The field expression referring to the field of the additional sort order of
the local partition sorting.order - The order of the additional sort order of the local partition sorting.protected org.apache.flink.api.common.operators.SingleInputOperator<?,T,?> translateToDataFlow(org.apache.flink.api.common.operators.Operator<T> input)
SingleInputOperatortranslateToDataFlow in class SingleInputOperator<T,T,SortPartitionOperator<T>>input - The data flow operator that produces this operation's input data.Copyright © 2014–2015 The Apache Software Foundation. All rights reserved.