public class StreamUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static <T> Collector<T,List<T>,List<T>> |
batchCollector(int batchSize,
Consumer<List<T>> batchProcessor)
Creates a new batch collector
|
public static <T> Collector<T,List<T>,List<T>> batchCollector(int batchSize, Consumer<List<T>> batchProcessor)
T - the type of elements being processedbatchSize - the batch size after which the batchProcessor is calledbatchProcessor - the batch processor which accepts batches of records to processCopyright © 2018. All rights reserved.