Interface AggregatorReducer

All Superinterfaces:
AutoCloseable, Closeable, Releasable

public interface AggregatorReducer extends Releasable
Interface for reducing aggregations to a single one.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Adds an aggregation for reduction.
    default void
     
    get()
    returns the final aggregation.
  • Method Details

    • accept

      void accept(InternalAggregation aggregation)
      Adds an aggregation for reduction. In most cases, the assumption will be the all given aggregations are of the same type (the same type as this aggregation).
    • get

      returns the final aggregation.
    • close

      default void close()
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface Closeable
      Specified by:
      close in interface Releasable