Class AggregateOffsetLength<E,​R>

java.lang.Object
one.microstream.functional.AggregateOffsetLength<E,​R>
All Implemented Interfaces:
Consumer<E>, Aggregator<E,​R>

public final class AggregateOffsetLength<E,​R>
extends Object
implements Aggregator<E,​R>
  • Constructor Details

  • Method Details

    • accept

      public final void accept​(E element)
      Description copied from interface: Aggregator
      Aggregate single element to the collecting object.
      Specified by:
      accept in interface Aggregator<E,​R>
      Specified by:
      accept in interface Consumer<E>
      Parameters:
      element - to aggregate
    • yield

      public final R yield()
      Description copied from interface: Aggregator
      Builds or aggregates the added elements to one collected object.
      Specified by:
      yield in interface Aggregator<E,​R>
      Returns:
      the collected object