Interface IgniteReducer<E,​R>

    • Method Detail

      • collect

        boolean collect​(@Nullable
                        E e)
        Collects given value. If this method returns false then reduce() will be called right away. Otherwise caller will continue collecting until all values are processed.
        Parameters:
        e - Value to collect.
        Returns:
        true to continue collecting, false to instruct caller to stop collecting and call reduce() method.
      • reduce

        R reduce()
        Reduces collected values into one.
        Returns:
        Reduced value.