RemoteIterator<E>public abstract class BatchedRemoteIterator<K,E> extends java.lang.Object implements RemoteIterator<E>
| Modifier and Type | Class | Description |
|---|---|---|
static interface |
BatchedRemoteIterator.BatchedEntries<E> |
|
static class |
BatchedRemoteIterator.BatchedListEntries<E> |
| Constructor | Description |
|---|---|
BatchedRemoteIterator(K prevKey) |
| Modifier and Type | Method | Description |
|---|---|---|
abstract K |
elementToPrevKey(E element) |
Return the next list key associated with an element.
|
boolean |
hasNext() |
Returns true if the iteration has more elements.
|
abstract BatchedRemoteIterator.BatchedEntries<E> |
makeRequest(K prevKey) |
Perform the actual remote request.
|
E |
next() |
Returns the next element in the iteration.
|
public BatchedRemoteIterator(K prevKey)
public abstract BatchedRemoteIterator.BatchedEntries<E> makeRequest(K prevKey) throws java.io.IOException
prevKey - The key to send.java.io.IOException - If an I/O error occurred.public boolean hasNext()
throws java.io.IOException
RemoteIteratorhasNext in interface RemoteIterator<K>java.io.IOException - if any IO error occurspublic abstract K elementToPrevKey(E element)
element - element.public E next() throws java.io.IOException
RemoteIteratornext in interface RemoteIterator<K>java.io.IOException - if any IO error occursCopyright © 2008–2025 Apache Software Foundation. All rights reserved.