IN - The type of the data set reduced by the operator.public class ReduceOperator<IN> extends SingleInputUdfOperator<IN,IN,ReduceOperator<IN>>
ReduceFunction| Constructor and Description |
|---|
ReduceOperator(DataSet<IN> input,
ReduceFunction<IN> function,
String defaultName)
This is the case for a reduce-all case (in contrast to the reduce-per-group case).
|
ReduceOperator(Grouping<IN> input,
ReduceFunction<IN> function,
String defaultName) |
| Modifier and Type | Method and Description |
|---|---|
protected SingleInputOperator<?,IN,?> |
translateToDataFlow(Operator<IN> input)
Translates this operation to a data flow operator of the common data flow API.
|
extractSemanticAnnotationsFromUdf, getBroadcastSets, getParameters, getSemanticProperties, setSemanticProperties, withBroadcastSet, withConstantSet, withParametersgetInput, getInputTypegetName, getParallelism, getResultType, name, setParallelismaggregate, checkSameExecutionContext, clean, coGroup, cross, crossWithHuge, crossWithTiny, distinct, distinct, distinct, distinct, 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, printToErr, project, rebalance, reduce, reduceGroup, runOperation, sum, union, write, write, writeAsCsv, writeAsCsv, writeAsCsv, writeAsCsv, writeAsFormattedText, writeAsFormattedText, writeAsText, writeAsTextpublic ReduceOperator(DataSet<IN> input, ReduceFunction<IN> function, String defaultName)
input - function - public ReduceOperator(Grouping<IN> input, ReduceFunction<IN> function, String defaultName)
protected SingleInputOperator<?,IN,?> translateToDataFlow(Operator<IN> input)
SingleInputOperatortranslateToDataFlow in class SingleInputOperator<IN,IN,ReduceOperator<IN>>input - The data flow operator that produces this operation's input data.Copyright © 2015 The Apache Software Foundation. All rights reserved.