public class ControllerCursor<S> extends AbstractCursor<S>
controller.| Modifier and Type | Method and Description |
|---|---|
static <S> Cursor<S> |
apply(Cursor<S> source,
Query.Controller controller)
Returns a ControllerCursor depending on whether a controller instance is
passed in or not.
|
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 static <S> Cursor<S> apply(Cursor<S> source, Query.Controller controller)
controller - optional controller which can abort query operationjava.lang.IllegalArgumentException - if source is nullpublic 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 exceptionpublic void close()
throws FetchException
CursorFetchExceptionCopyright © 2006-2013 Amazon Technologies, Inc.. All Rights Reserved.