S - source typeT - type of returned valuepublic abstract static class RemoteIterators.WrappingRemoteIterator<S,T> extends Object implements RemoteIterator<T>, IOStatisticsSource, Closeable
| Modifier | Constructor and Description |
|---|---|
protected |
WrappingRemoteIterator(RemoteIterator<S> source) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
IOStatistics |
getIOStatistics()
Return a statistics instance.
|
protected RemoteIterator<S> |
getSource() |
protected boolean |
sourceHasNext()
Check for the source having a next element.
|
protected S |
sourceNext()
Get the next source value.
|
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waithasNext, nextprotected WrappingRemoteIterator(RemoteIterator<S> source)
protected RemoteIterator<S> getSource()
public IOStatistics getIOStatistics()
IOStatisticsSource
It is not a requirement that the same instance is returned every time.
IOStatisticsSource.
If the object implementing this is Closeable, this method may return null if invoked on a closed object, even if it returns a valid instance when called earlier.
getIOStatistics in interface IOStatisticsSourcepublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionprotected boolean sourceHasNext()
throws IOException
IOException - failure to retrieve next valueprotected S sourceNext() throws IOException
sourceHasNext() first to verify
that there is data.IOException - failureNoSuchElementException - no more dataCopyright © 2008–2025 Apache Software Foundation. All rights reserved.