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 and Description
    `Sum()`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and 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 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 © 2021 The Apache Software Foundation. All rights reserved.