One thing I can see with ScrollableResults would be to allow streaming "chunks" of the results. Consider that the main use case for ScrollableResults is to access just a certain page/chunk of the results. So I could see an addition to the ScrollableResults API to obtain a chunk for streaming. Either:
interface ScrollableResults {
...
List getPage(int start, int results);
}
or:
interface ScrollableResults {
...
Stream getPage(int start, int results);
}
|