storm.trident.operation.builtin
Class Sum

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

public class Sum
extends java.lang.Object
implements CombinerAggregator<java.lang.Number>

See Also:
Serialized Form

Constructor Summary
Sum()
           
 
Method Summary
 java.lang.Number combine(java.lang.Number val1, java.lang.Number val2)
           
 java.lang.Number init(TridentTuple tuple)
           
 java.lang.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 java.lang.Number init(TridentTuple tuple)
Specified by:
init in interface CombinerAggregator<java.lang.Number>

combine

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

zero

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