T - The type of the elements of the grouped DataSet.@Public public abstract class Grouping<T> extends Object
DataSet| Modifier and Type | Field and Description |
|---|---|
protected Partitioner<?> |
customPartitioner |
protected DataSet<T> |
inputDataSet |
protected Keys<T> |
keys |
| Modifier and Type | Method and Description |
|---|---|
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.
|
Keys<T> |
getKeys() |
protected Partitioner<?> customPartitioner
@Internal public DataSet<T> getInputDataSet()
DataSet notGrouped = input.groupBy().getDataSet();
DataSet 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 Partitioner<?> getCustomPartitioner()
null, if
none was defined.Copyright © 2014–2017 The Apache Software Foundation. All rights reserved.