public interface IterableDatasetFinder<T extends Dataset> extends DatasetsFinder<T>
DatasetsFinder that can return the Datasets as an Iterator. This allows Datasets
to be created on demand instead of all at once, possibly reducing memory usage and improving performance.| Modifier and Type | Method and Description |
|---|---|
Iterator<T> |
getDatasetsIterator()
Deprecated.
use
getDatasetsStream(int, java.util.Comparator<T>) instead. |
default java.util.stream.Stream<T> |
getDatasetsStream(int desiredCharacteristics,
Comparator<T> suggestedOrder)
Get a stream of
Datasets found. |
commonDatasetRoot, findDatasets@Deprecated Iterator<T> getDatasetsIterator() throws IOException
getDatasetsStream(int, java.util.Comparator<T>) instead.Iterator over the Datasets found.IOExceptiondefault java.util.stream.Stream<T> getDatasetsStream(int desiredCharacteristics, Comparator<T> suggestedOrder) throws IOException
Datasets found.desiredCharacteristics - desired Spliterator characteristics of this stream. The returned
stream need not satisfy these characteristics, this argument merely implies that the
caller will run optimally when those characteristics are present, allowing pushdown of
those characteristics. For example Spliterator.SORTED can sometimes
be pushed down at a cost, so the DatasetsFinder would only push it down if it is valuable
for the caller.suggestedOrder - suggested order of the datasets in the stream. Implementation may or may not return the entries
in that order. If the entries are in that order, implementation should ensure the spliterator
is annotated as such.Datasets found.IOException