public abstract class PaginatingTask<RequestType,ResultType>
extends java.lang.Object
implements java.util.concurrent.Callable<ResultType>
| Modifier and Type | Field and Description |
|---|---|
protected DynamoDBDelegate |
delegate |
| Modifier | Constructor and Description |
|---|---|
protected |
PaginatingTask(DynamoDBDelegate delegate,
java.lang.String apiName,
java.lang.String tableName) |
| Modifier and Type | Method and Description |
|---|---|
ResultType |
call() |
protected abstract ResultType |
getMergedPages()
Merges all the pages iterated through in this instance and returns them
|
int |
getPagesProcessed() |
abstract boolean |
hasNext() |
abstract ResultType |
next()
moves the iterator to the next page in preparation for another hasNext/processPage call
|
protected final DynamoDBDelegate delegate
protected PaginatingTask(DynamoDBDelegate delegate, java.lang.String apiName, java.lang.String tableName)
public ResultType call() throws com.thinkaurelius.titan.diskstorage.BackendException
call in interface java.util.concurrent.Callable<ResultType>com.thinkaurelius.titan.diskstorage.BackendExceptionpublic int getPagesProcessed()
protected abstract ResultType getMergedPages()
public abstract boolean hasNext()
public abstract ResultType next() throws com.thinkaurelius.titan.diskstorage.BackendException
com.thinkaurelius.titan.diskstorage.BackendException