org.apache.storm.streams.operations

## Interface Reducer<T>

- All Superinterfaces:
    BiFunction<T,T,T>, Operation, Serializable

      public interface Reducer<T>
      extends BiFunction<T,T,T>

  The `Reducer` performs an operation on two values of the same type producing a result of the same type.

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `T` | `apply(T arg1, T arg2)` Applies this function to the given arguments.

- - ### Method Detail

    - #### apply

          T apply(T arg1,
                  T arg2)

      Applies this function to the given arguments.

      Specified by:
        `apply` in interface `BiFunction<T,T,T>`
      Parameters:
        `arg1` - the first argument
        `arg2` - the second argument
      Returns:
        the result

Copyright © 2019 The Apache Software Foundation. All rights reserved.