Class Grouping<T>
- java.lang.Object
-
- org.apache.flink.api.java.operators.Grouping<T>
-
- Type Parameters:
T- The type of the elements of the grouped DataSet.
- Direct Known Subclasses:
SortedGrouping,UnsortedGrouping
@Deprecated @Public public abstract class Grouping<T> extends Object
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.Grouping is an intermediate step for a transformation on a grouped DataSet.The following transformation can be applied on Grouping:
-
-
Field Summary
Fields Modifier and Type Field Description protected org.apache.flink.api.common.functions.Partitioner<?>customPartitionerDeprecated.protected DataSet<T>inputDataSetDeprecated.protected org.apache.flink.api.common.operators.Keys<T>keysDeprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description org.apache.flink.api.common.functions.Partitioner<?>getCustomPartitioner()Deprecated.Gets the custom partitioner to be used for this grouping, ornull, if none was defined.DataSet<T>getInputDataSet()Deprecated.Returns the input DataSet of a grouping operation, that is the one before the grouping.org.apache.flink.api.common.operators.Keys<T>getKeys()Deprecated.
-
-
-
Method Detail
-
getInputDataSet
@Internal public DataSet<T> getInputDataSet()
Deprecated.Returns the input DataSet of a grouping operation, that is the one before the grouping. This means that if it is applied directly to the result of a grouping operation, it will cancel its effect. As an example, in the following snippet:DataSet<X> notGrouped = input.groupBy().getDataSet(); DataSet<Y> allReduced = notGrouped.reduce()the
groupBy()is as if it never happened, as thenotGroupedDataSet corresponds to the input of thegroupBy()(because of thegetDataset()).
-
getKeys
@Internal public org.apache.flink.api.common.operators.Keys<T> getKeys()
Deprecated.
-
getCustomPartitioner
@Internal public org.apache.flink.api.common.functions.Partitioner<?> getCustomPartitioner()
Deprecated.Gets the custom partitioner to be used for this grouping, ornull, if none was defined.- Returns:
- The custom partitioner to be used for this grouping.
-
-