Class LongSumReducer

    • Constructor Detail

      • LongSumReducer

        public LongSumReducer()
    • Method Detail

      • collect

        public boolean collect​(Long e)
        Collects given value. If this method returns false then IgniteReducer.reduce() will be called right away. Otherwise caller will continue collecting until all values are processed.
        Specified by:
        collect in interface IgniteReducer<Long,​Long>
        Parameters:
        e - Value to collect.
        Returns:
        true to continue collecting, false to instruct caller to stop collecting and call IgniteReducer.reduce() method.