Spliterator is the source of data for the Java 8 Stream. This commit contributes a Spliterator that wraps Hibernate's ScrollableResults.
The commit also contributes an abstract base class which captures the concern of splitting into batches of configurable size, thus supporting automatic parallelization of the stream.
Issues: SPR-12349, SPR-12388
I have signed and agree to the terms of the SpringSource Individual Contributor License Agreement.
Comment From: pivotal-issuemaster
@mtopolnik Please sign the Contributor License Agreement!
Click here to manually synchronize the status of this Pull Request.
See the FAQ for frequently asked questions.
Comment From: pivotal-issuemaster
@mtopolnik Thank you for signing the Contributor License Agreement!
Comment From: snicoll
@mtopolnik thanks for the PR and sorry it took us so long to get back to you. Looking at the original issue, it didn't seem to get any traction from the community and it feels like that might be more suited to the Hibernate codebase, if any.