public class QueryResultIterable extends Object implements Iterable<Result>
CatalogCommandRuntimeException
if anything goes wrong during iteration or
queryingConstructor and Description |
---|
QueryResultIterable(CatalogFramework catalog,
Function<Integer,QueryRequest> filter)
For paging through a single filter with a default pageSize of 64
|
QueryResultIterable(CatalogFramework catalog,
Function<Integer,QueryRequest> filter,
int pageSize)
For paging through a single filter.
|
Modifier and Type | Method and Description |
---|---|
Iterator<Result> |
iterator() |
Spliterator<Result> |
spliterator() |
Stream<Result> |
stream() |
public QueryResultIterable(CatalogFramework catalog, Function<Integer,QueryRequest> filter)
catalog
- catalog to queryfilter
- A dynamic supplier of a filter that takes the current index such that the caller
can control iteration based on their own logicpublic QueryResultIterable(CatalogFramework catalog, Function<Integer,QueryRequest> filter, int pageSize)
catalog
- catalog to queryfilter
- A dynamic supplier of a filter that takes the current index such that the caller
can control iteration based on their own logicpageSize
- How many results should each page holdThis work is licensed under a Creative Commons Attribution 4.0 International License.