Class GroupReduceOperator<IN,OUT>
- java.lang.Object
-
- org.apache.flink.api.java.DataSet<OUT>
-
- org.apache.flink.api.java.operators.Operator<OUT,O>
-
- org.apache.flink.api.java.operators.SingleInputOperator<IN,OUT,O>
-
- org.apache.flink.api.java.operators.SingleInputUdfOperator<IN,OUT,GroupReduceOperator<IN,OUT>>
-
- org.apache.flink.api.java.operators.GroupReduceOperator<IN,OUT>
-
- Type Parameters:
IN- The type of the data set consumed by the operator.OUT- The type of the data set created by the operator.
- All Implemented Interfaces:
UdfOperator<GroupReduceOperator<IN,OUT>>
@Deprecated @Public public class GroupReduceOperator<IN,OUT> extends SingleInputUdfOperator<IN,OUT,GroupReduceOperator<IN,OUT>>
Deprecated.All Flink DataSet APIs are deprecated since Flink 1.18 and will be removed in a future Flink major version. You can still build your application in DataSet, but you should move to either the DataStream and/or Table API.This operator represents the application of a "reduceGroup" function on a data set, and the result data set produced by the function.
-
-
Field Summary
-
Fields inherited from class org.apache.flink.api.java.operators.Operator
minResources, name, parallelism, preferredResources
-
-
Constructor Summary
Constructors Constructor Description GroupReduceOperator(DataSet<IN> input, org.apache.flink.api.common.typeinfo.TypeInformation<OUT> resultType, org.apache.flink.api.common.functions.GroupReduceFunction<IN,OUT> function, String defaultName)Deprecated.Constructor for a non-grouped reduce (all reduce).GroupReduceOperator(Grouping<IN> input, org.apache.flink.api.common.typeinfo.TypeInformation<OUT> resultType, org.apache.flink.api.common.functions.GroupReduceFunction<IN,OUT> function, String defaultName)Deprecated.Constructor for a grouped reduce.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected org.apache.flink.api.common.functions.GroupReduceFunction<IN,OUT>getFunction()Deprecated.org.apache.flink.api.common.operators.SingleInputSemanticPropertiesgetSemanticProperties()Deprecated.Gets the semantic properties that have been set for the user-defined functions (UDF).booleanisCombinable()Deprecated.GroupReduceOperator<IN,OUT>setCombinable(boolean combinable)Deprecated.protected org.apache.flink.api.common.operators.base.GroupReduceOperatorBase<?,OUT,?>translateToDataFlow(org.apache.flink.api.common.operators.Operator<IN> input)Deprecated.Translates this operation to a data flow operator of the common data flow API.-
Methods inherited from class org.apache.flink.api.java.operators.SingleInputUdfOperator
extractSemanticAnnotations, getAnalyzedUdfSemanticsFlag, getBroadcastSets, getParameters, returns, returns, returns, setAnalyzedUdfSemanticsFlag, setSemanticProperties, udfWithForwardedFieldsAnnotation, withBroadcastSet, withForwardedFields, withParameters
-
Methods inherited from class org.apache.flink.api.java.operators.SingleInputOperator
getInput, getInputType
-
Methods inherited from class org.apache.flink.api.java.operators.Operator
getMinResources, getName, getParallelism, getPreferredResources, getResultType, name, setParallelism
-
Methods inherited from class org.apache.flink.api.java.DataSet
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, sortPartition, sortPartition, sortPartition, sum, union, write, write, writeAsCsv, writeAsCsv, writeAsCsv, writeAsCsv, writeAsFormattedText, writeAsFormattedText, writeAsText, writeAsText
-
-
-
-
Constructor Detail
-
GroupReduceOperator
public GroupReduceOperator(DataSet<IN> input, org.apache.flink.api.common.typeinfo.TypeInformation<OUT> resultType, org.apache.flink.api.common.functions.GroupReduceFunction<IN,OUT> function, String defaultName)
Deprecated.Constructor for a non-grouped reduce (all reduce).- Parameters:
input- The input data set to the groupReduce function.function- The user-defined GroupReduce function.
-
GroupReduceOperator
public GroupReduceOperator(Grouping<IN> input, org.apache.flink.api.common.typeinfo.TypeInformation<OUT> resultType, org.apache.flink.api.common.functions.GroupReduceFunction<IN,OUT> function, String defaultName)
Deprecated.Constructor for a grouped reduce.- Parameters:
input- The grouped input to be processed group-wise by the groupReduce function.function- The user-defined GroupReduce function.
-
-
Method Detail
-
getFunction
protected org.apache.flink.api.common.functions.GroupReduceFunction<IN,OUT> getFunction()
Deprecated.- Specified by:
getFunctionin classSingleInputUdfOperator<IN,OUT,GroupReduceOperator<IN,OUT>>
-
isCombinable
@Internal public boolean isCombinable()
Deprecated.
-
setCombinable
public GroupReduceOperator<IN,OUT> setCombinable(boolean combinable)
Deprecated.
-
getSemanticProperties
@Internal public org.apache.flink.api.common.operators.SingleInputSemanticProperties getSemanticProperties()
Deprecated.Description copied from interface:UdfOperatorGets the semantic properties that have been set for the user-defined functions (UDF).- Specified by:
getSemanticPropertiesin interfaceUdfOperator<IN>- Overrides:
getSemanticPropertiesin classSingleInputUdfOperator<IN,OUT,GroupReduceOperator<IN,OUT>>- Returns:
- The semantic properties of the UDF.
-
translateToDataFlow
protected org.apache.flink.api.common.operators.base.GroupReduceOperatorBase<?,OUT,?> translateToDataFlow(org.apache.flink.api.common.operators.Operator<IN> input)
Deprecated.Description copied from class:SingleInputOperatorTranslates this operation to a data flow operator of the common data flow API.- Specified by:
translateToDataFlowin classSingleInputOperator<IN,OUT,GroupReduceOperator<IN,OUT>>- Parameters:
input- The data flow operator that produces this operation's input data.- Returns:
- The translated data flow operator.
-
-