S
- source type, can be anythingT
- target type, can be anythingpublic abstract class MultiTransformedCursor<S,T> extends AbstractCursor<T>
TransformedCursor
for one-to-one
joins.Modifier | Constructor and Description |
---|---|
protected |
MultiTransformedCursor(Cursor<S> cursor) |
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.
|
T |
next()
Returns the next element from this cursor.
|
int |
skipNext(int amount)
Skips forward by the specified amount of elements, returning the actual
amount skipped.
|
protected abstract Cursor<T> |
transform(S storable)
This method must be implemented to transform storables.
|
copyInto, copyInto, toList, toList
protected abstract Cursor<T> transform(S storable) throws FetchException
FetchException
public void close() throws FetchException
Cursor
FetchException
public boolean hasNext() throws FetchException
Cursor
next
would return an element rather than throwing
an exception.FetchException
- if storage layer throws an exceptionpublic T next() throws FetchException
Cursor
FetchException
- if storage layer throws an exceptionpublic int skipNext(int amount) throws FetchException
Cursor
skipNext
in interface Cursor<T>
skipNext
in class AbstractCursor<T>
amount
- maximum amount of elements to skipFetchException
- if storage layer throws an exceptionCopyright © 2006-2013 Amazon Technologies, Inc.. All Rights Reserved.