public class FetchAheadCursor<S> extends AbstractCursor<S>
| Constructor and Description |
|---|
FetchAheadCursor(Cursor<S> source,
int fetchAhead) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Call close to release any resources being held by this cursor.
|
boolean |
hasNext()
Returns true if this cursor has more elements.
|
S |
next()
Returns the next element from this cursor.
|
public void close()
throws FetchException
CursorFetchExceptionpublic boolean hasNext()
throws FetchException
Cursornext would return an element rather than throwing
an exception.FetchException - if storage layer throws an exceptionpublic S next() throws FetchException
CursorFetchException - if storage layer throws an exceptionCopyright © 2006-2013 Amazon Technologies, Inc.. All Rights Reserved.