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| 限定符和类型 | 字段和说明 |
|---|---|
protected org.apache.flink.api.common.functions.Partitioner<?> |
customPartitioner |
protected DataSet<T> |
inputDataSet |
protected org.apache.flink.api.common.operators.Keys<T> |
keys |
| 限定符和类型 | 方法和说明 |
|---|---|
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–2020 The Apache Software Foundation. All rights reserved.