Class DoubleSumAggregator

    • Constructor Detail

      • DoubleSumAggregator

        public DoubleSumAggregator()
    • Method Detail

      • aggregate

        public void aggregate​(DoubleValue 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<DoubleValue>
        Parameters:
        element - The element to aggregate.
      • aggregate

        public void aggregate​(double 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<DoubleValue>