You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There's repeating requests to add a partitioning of the stream to the fixed size batches. See, for example, this question. Some problems can be solved using StreamEx.ofSubLists, but sometimes the source is not a random access list. It's hardly possible to create efficient parallel implementation for ordered batches, but if we don't guarantee an order (any subset of input elements may be collected into single batch), then implementation becomes quite straightforward. Probably it's a good idea to add such collector.
Implementation
Tests
JavaDoc
Changes
Cheatsheet
The text was updated successfully, but these errors were encountered:
There's repeating requests to add a partitioning of the stream to the fixed size batches. See, for example, this question. Some problems can be solved using
StreamEx.ofSubLists
, but sometimes the source is not a random access list. It's hardly possible to create efficient parallel implementation for ordered batches, but if we don't guarantee an order (any subset of input elements may be collected into single batch), then implementation becomes quite straightforward. Probably it's a good idea to add such collector.The text was updated successfully, but these errors were encountered: