com.cloudera.crunch
Class CombineFn.MinLongs
java.lang.Object
com.cloudera.crunch.CombineFn.MinLongs
- All Implemented Interfaces:
- CombineFn.Aggregator<Long>, Serializable
- Enclosing class:
- CombineFn<S,T>
public static class CombineFn.MinLongs
- extends Object
- implements CombineFn.Aggregator<Long>
- See Also:
- Serialized Form
Method Summary |
void |
reset()
Clears the internal state of this Aggregator and prepares it for the values associated
with the next key. |
Iterable<Long> |
results()
Returns the current aggregated state of this instance. |
void |
update(Long next)
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.MinLongs
public CombineFn.MinLongs()
reset
public void reset()
- Description copied from interface:
CombineFn.Aggregator
- Clears the internal state of this Aggregator and prepares it for the values associated
with the next key.
- Specified by:
reset
in interface CombineFn.Aggregator<Long>
update
public void update(Long next)
- Description copied from interface:
CombineFn.Aggregator
- Incorporate the given value into the aggregate state maintained by this instance.
- Specified by:
update
in interface CombineFn.Aggregator<Long>
results
public Iterable<Long> results()
- Description copied from interface:
CombineFn.Aggregator
- Returns the current aggregated state of this instance.
- Specified by:
results
in interface CombineFn.Aggregator<Long>
Copyright © 2012. All Rights Reserved.