public abstract class BatchedRemoteIterator<K,E> extends Object implements RemoteIterator<E>
Modifier and Type | Class and Description |
---|---|
static interface |
BatchedRemoteIterator.BatchedEntries<E> |
static class |
BatchedRemoteIterator.BatchedListEntries<E> |
Constructor and Description |
---|
BatchedRemoteIterator(K prevKey) |
Modifier and Type | Method and 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 IOException
prevKey
- The key to send.IOException
public boolean hasNext() throws IOException
RemoteIterator
hasNext
in interface RemoteIterator<E>
IOException
- if any IO error occurspublic abstract K elementToPrevKey(E element)
public E next() throws IOException
RemoteIterator
next
in interface RemoteIterator<E>
IOException
- if any IO error occursCopyright © 2017 Apache Software Foundation. All Rights Reserved.