storm.trident.operation.builtin
Class Sum

java.lang.Object
  extended by storm.trident.operation.builtin.Sum
All Implemented Interfaces:
Serializable, CombinerAggregator<Number>

public class Sum
extends Object
implements CombinerAggregator<Number>

See Also:
Serialized Form

Constructor Summary
Sum()
           
 
Method Summary
 Number combine(Number val1, Number val2)
           
 Number init(TridentTuple tuple)
           
 Number zero()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Sum

public Sum()
Method Detail

init

public Number init(TridentTuple tuple)
Specified by:
init in interface CombinerAggregator<Number>

combine

public Number combine(Number val1,
                      Number val2)
Specified by:
combine in interface CombinerAggregator<Number>

zero

public Number zero()
Specified by:
zero in interface CombinerAggregator<Number>


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