org.apache.geode.cache.query

## Interface Aggregator

-     public interface Aggregator

  Behavior of a user-defined aggregator. Aggregates values and returns a result. In addition to the methods in the interface, implementing classes must have a 0-arg public constructor.

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `accumulate(java.lang.Object value)` Accumulate the next scalar value
    `void` | `init()` Initialize the Aggregator
    `java.lang.Object` | `terminate()`

- - ### Method Detail

    - #### accumulate

          void accumulate(java.lang.Object value)

      Accumulate the next scalar value
      Parameters:
        `value` -

    - #### init

          void init()

      Initialize the Aggregator

    - #### terminate

          java.lang.Object terminate()

      Returns:
        Return the result scalar value