Class LongSumAggregator

    • Constructor Detail

      • LongSumAggregator

        public LongSumAggregator()
    • Method Detail

      • aggregate

        public void aggregate​(LongValue element)
        Description copied from interface: Aggregator
        Aggregates the given element. In the case of a sum aggregator, this method adds the given value to the sum.
        Specified by:
        aggregate in interface Aggregator<LongValue>
        Parameters:
        element - The element to aggregate.
      • aggregate

        public void aggregate​(long value)
        Adds the given value to the current aggregate.
        Parameters:
        value - The value to add to the aggregate.
      • reset

        public void reset()
        Description copied from interface: Aggregator
        Resets the internal state of the aggregator. This must bring the aggregator into the same state as if it was newly initialized.
        Specified by:
        reset in interface Aggregator<LongValue>