Class Sum
- java.lang.Object
-
- org.apache.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
Constructors Constructor Description Sum()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Number
combine(Number val1, Number val2)
Number
init(TridentTuple tuple)
Number
zero()
-
-
-
Method Detail
-
init
public Number init(TridentTuple tuple)
- Specified by:
init
in interfaceCombinerAggregator<Number>
-
combine
public Number combine(Number val1, Number val2)
- Specified by:
combine
in interfaceCombinerAggregator<Number>
-
zero
public Number zero()
- Specified by:
zero
in interfaceCombinerAggregator<Number>
-
-