com.cloudera.crunch
Class CombineFn.PairAggregator<V1,V2>
java.lang.Object
com.cloudera.crunch.CombineFn.PairAggregator<V1,V2>
- All Implemented Interfaces:
- CombineFn.Aggregator<Pair<V1,V2>>, Serializable
- Enclosing class:
- CombineFn<S,T>
public static class CombineFn.PairAggregator<V1,V2>
- extends Object
- See Also:
- Serialized Form
Method Summary |
Iterable<Pair<V1,V2>> |
results()
Returns the current aggregated state of this instance. |
void |
update(Pair<V1,V2> value)
Incorporate the given value into the aggregate state maintained by this instance. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CombineFn.PairAggregator
public CombineFn.PairAggregator(CombineFn.Aggregator<V1> a1,
CombineFn.Aggregator<V2> a2)
update
public void update(Pair<V1,V2> value)
- Description copied from interface:
CombineFn.Aggregator
- Incorporate the given value into the aggregate state maintained by this instance.
results
public Iterable<Pair<V1,V2>> results()
- Description copied from interface:
CombineFn.Aggregator
- Returns the current aggregated state of this instance.
Copyright © 2012. All Rights Reserved.