This project has retired. For details please refer to its Attic page.
CombineFn.MaxInts (Apache Crunch 0.3.0-incubating API)

org.apache.crunch
Class CombineFn.MaxInts

java.lang.Object
  extended by org.apache.crunch.CombineFn.MaxInts
All Implemented Interfaces:
Serializable, CombineFn.Aggregator<Integer>
Enclosing class:
CombineFn<S,T>

public static class CombineFn.MaxInts
extends Object
implements CombineFn.Aggregator<Integer>

See Also:
Serialized Form

Constructor Summary
CombineFn.MaxInts()
           
 
Method Summary
 void reset()
          Clears the internal state of this Aggregator and prepares it for the values associated with the next key.
 Iterable<Integer> results()
          Returns the current aggregated state of this instance.
 void update(Integer next)
          Incorporate the given value into the aggregate state maintained by this instance.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CombineFn.MaxInts

public CombineFn.MaxInts()
Method Detail

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<Integer>

update

public void update(Integer 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<Integer>

results

public Iterable<Integer> results()
Description copied from interface: CombineFn.Aggregator
Returns the current aggregated state of this instance.

Specified by:
results in interface CombineFn.Aggregator<Integer>


Copyright © 2012 The Apache Software Foundation. All Rights Reserved.