Package io.activej.aggregation
Class AggregationChunker<C,T>
java.lang.Object
io.activej.datastream.ForwardingStreamConsumer<T>
io.activej.aggregation.AggregationChunker<C,T>
- All Implemented Interfaces:
io.activej.async.process.AsyncCloseable,io.activej.common.initializer.WithInitializer<AggregationChunker<C,,T>> StreamConsumer<T>
public final class AggregationChunker<C,T>
extends ForwardingStreamConsumer<T>
implements io.activej.common.initializer.WithInitializer<AggregationChunker<C,T>>
-
Field Summary
Fields inherited from class io.activej.datastream.ForwardingStreamConsumer
consumerFields inherited from interface io.activej.async.process.AsyncCloseable
STATIC -
Method Summary
Modifier and TypeMethodDescriptionstatic <C,T> AggregationChunker<C, T> create(AggregationStructure aggregation, List<String> fields, Class<T> recordClass, PartitionPredicate<T> partitionPredicate, AggregationChunkStorage<C> storage, DefiningClassLoader classLoader, int chunkSize) io.activej.promise.Promise<List<AggregationChunk>>Methods inherited from class io.activej.datastream.ForwardingStreamConsumer
closeEx, consume, getAcknowledgement, getDataAcceptorMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.activej.async.process.AsyncCloseable
closeMethods inherited from interface io.activej.datastream.StreamConsumer
isComplete, isException, isResult, transformWith, withAcknowledgementMethods inherited from interface io.activej.common.initializer.WithInitializer
withInitializer
-
Method Details
-
create
public static <C,T> AggregationChunker<C,T> create(AggregationStructure aggregation, List<String> fields, Class<T> recordClass, PartitionPredicate<T> partitionPredicate, AggregationChunkStorage<C> storage, DefiningClassLoader classLoader, int chunkSize) -
getResult
-