Class AggregateCount<E>

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

public final class AggregateCount<E>
extends Object
implements Aggregator<E,​Long>
  • 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,​Long>
      Specified by:
      accept in interface Consumer<E>
      Parameters:
      element - to aggregate
    • yield

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