T - The type of the elements of the grouped DataSet.@Public public abstract class Grouping<T> extends Object
The following transformation can be applied on Grouping:
DataSet| Modifier and Type | Field and Description | 
|---|---|
| protected org.apache.flink.api.common.functions.Partitioner<?> | customPartitioner | 
| protected DataSet<T> | inputDataSet | 
| protected org.apache.flink.api.common.operators.Keys<T> | keys | 
| Constructor and Description | 
|---|
| Grouping(DataSet<T> set,
        org.apache.flink.api.common.operators.Keys<T> keys) | 
| Modifier and Type | Method and Description | 
|---|---|
| org.apache.flink.api.common.functions.Partitioner<?> | getCustomPartitioner()Gets the custom partitioner to be used for this grouping, or  null, if none was
 defined. | 
| DataSet<T> | getInputDataSet()Returns the input DataSet of a grouping operation, that is the one before the grouping. | 
| org.apache.flink.api.common.operators.Keys<T> | getKeys() | 
protected final org.apache.flink.api.common.operators.Keys<T> keys
protected org.apache.flink.api.common.functions.Partitioner<?> customPartitioner
@Internal public DataSet<T> getInputDataSet()
 DataSet<X> notGrouped = input.groupBy().getDataSet();
 DataSet<Y> allReduced = notGrouped.reduce()
 the groupBy() is as if it never happened, as the notGrouped DataSet
 corresponds to the input of the groupBy() (because of the getDataset()).
@Internal public org.apache.flink.api.common.operators.Keys<T> getKeys()
@Internal public org.apache.flink.api.common.functions.Partitioner<?> getCustomPartitioner()
null, if none was
 defined.Copyright © 2014–2021 The Apache Software Foundation. All rights reserved.