public class IntegerMaxAggregatorFunction extends Object implements UnaryFunction<List<Integer>,Integer>
AbstractListBackedAggregator
which finds the maximum number in a list. It does this by traversing the list
(once) -- so the complexity of this will be O(n).| Constructor and Description |
|---|
IntegerMaxAggregatorFunction() |
public IntegerMaxAggregatorFunction()
public Integer evaluate(List<Integer> data)
evaluate in interface UnaryFunction<List<Integer>,Integer>data - List to traverse and find maxCopyright © 2003-2013 The Apache Software Foundation. All Rights Reserved.