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,
TypeInformation<OUT> resultType,
GroupReduceFunction<IN,OUT> function,
String defaultName)
Constructor for a non-grouped reduce (all reduce).
|
GroupReduceOperator(Grouping<IN> input,
TypeInformation<OUT> resultType,
GroupReduceFunction<IN,OUT> function,
String defaultName)
Constructor for a grouped reduce.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
isCombinable() |
GroupReduceOperator<IN,OUT> |
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, 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 GroupReduceOperator(DataSet<IN> input, TypeInformation<OUT> resultType, GroupReduceFunction<IN,OUT> function, String defaultName)
input - The input data set to the groupReduce function.function - The user-defined GroupReduce function.public GroupReduceOperator(Grouping<IN> input, TypeInformation<OUT> resultType, GroupReduceFunction<IN,OUT> function, String defaultName)
input - The grouped input to be processed group-wise by the groupReduce function.function - The user-defined GroupReduce function.public boolean isCombinable()
public GroupReduceOperator<IN,OUT> 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 © 2015 The Apache Software Foundation. All rights reserved.