S - source typeT - type of returned valuejava.io.Closeable, java.lang.AutoCloseable, RemoteIterator<T>, IOStatisticsSourcepublic abstract static class RemoteIterators.WrappingRemoteIterator<S,T> extends java.lang.Object implements RemoteIterator<T>, IOStatisticsSource, java.io.Closeable
| Modifier | Constructor | Description |
|---|---|---|
protected |
WrappingRemoteIterator(RemoteIterator<S> source) |
| Modifier and Type | Method | 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.
|
java.lang.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 java.io.IOException
close in interface java.lang.AutoCloseableclose in interface java.io.Closeablejava.io.IOExceptionprotected boolean sourceHasNext()
throws java.io.IOException
java.io.IOException - failure to retrieve next valueprotected S sourceNext() throws java.io.IOException
sourceHasNext() first to verify
that there is data.java.io.IOException - failurejava.util.NoSuchElementException - no more datapublic java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2008–2025 Apache Software Foundation. All rights reserved.