T
- The type of the DataSet with locally sorted partitions.@Deprecated @Public public class SortPartitionOperator<T> extends SingleInputOperator<T,T,SortPartitionOperator<T>>
minResources, name, parallelism, preferredResources
Constructor and Description |
---|
SortPartitionOperator(DataSet<T> dataSet,
int sortField,
Order sortOrder,
String sortLocationName)
Deprecated.
|
SortPartitionOperator(DataSet<T> dataSet,
Keys.SelectorFunctionKeys<T,K> sortKey,
Order sortOrder,
String sortLocationName)
Deprecated.
|
SortPartitionOperator(DataSet<T> dataSet,
String sortField,
Order sortOrder,
String sortLocationName)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
SortPartitionOperator<T> |
sortPartition(int field,
Order order)
Deprecated.
Appends an additional sort order with the specified field in the specified order to the local
partition sorting of the DataSet.
|
<K> SortPartitionOperator<T> |
sortPartition(KeySelector<T,K> keyExtractor,
Order order)
Deprecated.
Locally sorts the partitions of the DataSet on the extracted key in the specified order.
|
SortPartitionOperator<T> |
sortPartition(String field,
Order order)
Deprecated.
Appends an additional sort order with the specified field in the specified order to the local
partition sorting of the DataSet.
|
protected SingleInputOperator<?,T,?> |
translateToDataFlow(Operator<T> input)
Deprecated.
Translates this operation to a data flow operator of the common data flow API.
|
boolean |
useKeySelector()
Deprecated.
Returns whether using key selector or not.
|
getInput, getInputType
getMinResources, getName, getParallelism, getPreferredResources, getResultType, name, setParallelism
aggregate, checkSameExecutionContext, clean, coGroup, collect, combineGroup, count, cross, crossWithHuge, crossWithTiny, distinct, distinct, distinct, distinct, fillInType, filter, first, flatMap, fullOuterJoin, fullOuterJoin, getExecutionEnvironment, getType, groupBy, groupBy, groupBy, iterate, iterateDelta, join, join, joinWithHuge, joinWithTiny, leftOuterJoin, leftOuterJoin, map, mapPartition, max, maxBy, min, minBy, output, partitionByHash, partitionByHash, partitionByHash, partitionByRange, partitionByRange, partitionByRange, partitionCustom, partitionCustom, partitionCustom, print, print, printOnTaskManager, printToErr, printToErr, project, rebalance, reduce, reduceGroup, rightOuterJoin, rightOuterJoin, runOperation, sum, union, write, write, writeAsCsv, writeAsCsv, writeAsCsv, writeAsCsv, writeAsFormattedText, writeAsFormattedText, writeAsText, writeAsText
public SortPartitionOperator(DataSet<T> dataSet, int sortField, Order sortOrder, String sortLocationName)
public SortPartitionOperator(DataSet<T> dataSet, String sortField, Order sortOrder, String sortLocationName)
public boolean useKeySelector()
public SortPartitionOperator<T> sortPartition(int field, 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, 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.public <K> SortPartitionOperator<T> sortPartition(KeySelector<T,K> keyExtractor, Order order)
DataSet
Note that no additional sort keys can be appended to a KeySelector sort keys. To sort the partitions by multiple values using KeySelector, the KeySelector must return a tuple consisting of the values.
sortPartition
in class DataSet<T>
keyExtractor
- The KeySelector function which extracts the key values from the DataSet
on which the DataSet is sorted.order
- The order in which the DataSet is sorted.protected SingleInputOperator<?,T,?> translateToDataFlow(Operator<T> input)
SingleInputOperator
translateToDataFlow
in class SingleInputOperator<T,T,SortPartitionOperator<T>>
input
- The data flow operator that produces this operation's input data.Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.