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)
This is the case for a reduce-all case (in contrast to the reduce-per-group case).
|
ReduceOperator(Grouping<IN> input,
ReduceFunction<IN> function) |
| 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, getSematicProperties, setSemanticProperties, withBroadcastSet, withConstantSet, withParametersgetInput, getInputTypegetName, getParallelism, getResultType, name, setParallelismaggregate, checkSameExecutionContext, coGroup, cross, crossWithHuge, crossWithTiny, distinct, distinct, distinct, filter, flatMap, getExecutionEnvironment, getType, groupBy, groupBy, iterate, iterateDelta, join, joinWithHuge, joinWithTiny, map, max, min, output, print, printToErr, project, reduce, reduceGroup, runOperation, sum, union, write, write, writeAsCsv, writeAsCsv, writeAsCsv, writeAsText, writeAsTextpublic ReduceOperator(DataSet<IN> input, ReduceFunction<IN> function)
input - function - public ReduceOperator(Grouping<IN> input, ReduceFunction<IN> function)
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 © 2014 The Apache Software Foundation. All rights reserved.