public class FlatMapperIterator<T,R> extends WrappedIterator<R>
| Modifier and Type | Field and Description |
|---|---|
protected Iterator<R> |
batchIterator |
current| Constructor and Description |
|---|
FlatMapperIterator(Iterator<T> origin,
java.util.function.Function<T,Iterator<R>> mapper) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
protected boolean |
fetch() |
protected boolean |
fetchFromBatch() |
protected Iterator<T> |
originIterator() |
protected void |
resetBatchIterator() |
close, hasNext, metadata, next, none, removeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEachRemainingpublic void close()
throws Exception
close in interface AutoCloseableclose in class WrappedIterator<R>Exceptionprotected Iterator<T> originIterator()
originIterator in class WrappedIterator<R>protected final boolean fetch()
fetch in class WrappedIterator<R>protected boolean fetchFromBatch()
protected final void resetBatchIterator()
Copyright © 2021. All rights reserved.