|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.hadoop.fs.BatchedRemoteIterator<K,E>
public abstract class BatchedRemoteIterator<K,E>
A RemoteIterator that fetches elements in batches.
| Nested Class Summary | |
|---|---|
static interface |
BatchedRemoteIterator.BatchedEntries<E>
|
static class |
BatchedRemoteIterator.BatchedListEntries<E>
|
| Constructor Summary | |
|---|---|
BatchedRemoteIterator(K prevKey)
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BatchedRemoteIterator(K prevKey)
| Method Detail |
|---|
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 occurs
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||