public interface PGroupedTable<K,V> extends PCollection<Pair<K,Iterable<V>>>
PTable
.Modifier and Type | Method and Description |
---|---|
PTable<K,V> |
combineValues(Aggregator<V> aggregator)
Combine the values in each group using the given
Aggregator . |
PTable<K,V> |
combineValues(CombineFn<K,V> combineFn)
Combines the values of this grouping using the given
CombineFn . |
PTable<K,V> |
ungroup()
Convert this grouping back into a multimap.
|
asCollection, by, by, count, filter, filter, getName, getPipeline, getPType, getSize, getTypeFamily, length, materialize, max, min, parallelDo, parallelDo, parallelDo, parallelDo, parallelDo, parallelDo, union, write, write
PTable<K,V> combineValues(CombineFn<K,V> combineFn)
CombineFn
.combineFn
- The combiner functionPTable
where each key has a single valuePTable<K,V> combineValues(Aggregator<V> aggregator)
Aggregator
.aggregator
- The function to usePTable
where each group key maps to an aggregated
value. Group keys may be repeated if an aggregator returns
more than one value.Copyright © 2013 The Apache Software Foundation. All Rights Reserved.