Package org.apache.storm.trident.operation.builtin

# 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

  Modifier and Type
  Method
  Description
  `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 Details

  - ### Sum

    public Sum()

- ## Method Details

  - ### 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>`