Class BroadleafScopedPagingStreams.ChunkFetchSpliterator<T>

java.lang.Object
com.broadleafcommerce.sandbox.stream.BroadleafScopedPagingStreams.ChunkFetchSpliterator<T>
Type Parameters:
T -
All Implemented Interfaces:
Spliterator<T>
Enclosing class:
BroadleafScopedPagingStreams

public static final class BroadleafScopedPagingStreams.ChunkFetchSpliterator<T> extends Object implements Spliterator<T>
A Spliterator capable of iterating through a partitioned list of identifying values and producing resulting, streamable data based on each partition. As the results from each chunk are depleted, the algorithm advances to the next chunk to replenish available results to expose via tryAdvance(Consumer).