IN - The type of the data set consumed by the operator.OUT - The type of the data set created by the operator.public class GroupReduceOperator<IN,OUT> extends SingleInputUdfOperator<IN,OUT,GroupReduceOperator<IN,OUT>>
| Constructor and Description |
|---|
GroupReduceOperator(DataSet<IN> input,
GroupReduceFunction<IN,OUT> function)
Constructor for a non-grouped reduce (all reduce).
|
GroupReduceOperator(Grouping<IN> input,
GroupReduceFunction<IN,OUT> function)
Constructor for a grouped reduce.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
isCombinable() |
void |
setCombinable(boolean combinable) |
protected GroupReduceOperatorBase<?,OUT,?> |
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 GroupReduceOperator(DataSet<IN> input, GroupReduceFunction<IN,OUT> function)
input - The input data set to the groupReduce function.function - The user-defined GroupReduce function.public GroupReduceOperator(Grouping<IN> input, GroupReduceFunction<IN,OUT> function)
input - The grouped input to be processed group-wise by the groupReduce function.function - The user-defined GroupReduce function.public boolean isCombinable()
public void setCombinable(boolean combinable)
protected GroupReduceOperatorBase<?,OUT,?> translateToDataFlow(Operator<IN> input)
SingleInputOperatortranslateToDataFlow in class SingleInputOperator<IN,OUT,GroupReduceOperator<IN,OUT>>input - The data flow operator that produces this operation's input data.Copyright © 2014 The Apache Software Foundation. All rights reserved.