Package one.microstream.functional
Class AggregateArrayBuilder<E>
java.lang.Object
one.microstream.functional.AggregateArrayBuilder<E>
- All Implemented Interfaces:
Consumer<E>
,Aggregator<E,E[]>
public final class AggregateArrayBuilder<E> extends Object implements Aggregator<E,E[]>
-
Nested Class Summary
Nested classes/interfaces inherited from interface one.microstream.functional.Aggregator
Aggregator.Creator<E,R>
-
Method Summary
Modifier and Type Method Description void
accept(E element)
Aggregate single element to the collecting object.static AggregateArrayBuilder<Object>
New()
static <E> AggregateArrayBuilder<E>
New(Class<E> elementType)
static <E> AggregateArrayBuilder<E>
New(Class<E> elementType, int initialCapacity)
E[]
yield()
Builds or aggregates the added elements to one collected object.
-
Method Details
-
New
-
New
-
New
-
accept
Description copied from interface:Aggregator
Aggregate single element to the collecting object. -
yield
Description copied from interface:Aggregator
Builds or aggregates the added elements to one collected object.- Specified by:
yield
in interfaceAggregator<E,E[]>
- Returns:
- the collected object
-