public interface QueryExecutor<S extends Storable>
QueryExecutorFactory| Modifier and Type | Method and Description |
|---|---|
long |
count(FilterValues<S> values)
Counts the query results using the given filter values.
|
long |
count(FilterValues<S> values,
Query.Controller controller)
Counts the query results using the given filter values.
|
Cursor<S> |
fetch(FilterValues<S> values)
Returns a new cursor using the given filter values.
|
Cursor<S> |
fetch(FilterValues<S> values,
Query.Controller controller)
Returns a new cursor using the given filter values.
|
Cursor<S> |
fetchSlice(FilterValues<S> values,
long from,
java.lang.Long to)
Returns a new cursor using the given filter values and slice.
|
Cursor<S> |
fetchSlice(FilterValues<S> values,
long from,
java.lang.Long to,
Query.Controller controller)
Returns a new cursor using the given filter values and slice.
|
Filter<S> |
getFilter()
Returns the filter used by this QueryExecutor.
|
OrderingList<S> |
getOrdering()
Returns the result ordering of this QueryExecutor.
|
java.lang.Class<S> |
getStorableType()
Returns the storable type that this executor operates on.
|
boolean |
printNative(java.lang.Appendable app,
int indentLevel,
FilterValues<S> values)
Prints the native query to any appendable, if applicable.
|
boolean |
printPlan(java.lang.Appendable app,
int indentLevel,
FilterValues<S> values)
Prints the query plan to any appendable, if applicable.
|
java.lang.Class<S> getStorableType()
Cursor<S> fetch(FilterValues<S> values) throws FetchException
FetchExceptionCursor<S> fetch(FilterValues<S> values, Query.Controller controller) throws FetchException
controller - optional controller which can abort query operationFetchExceptionCursor<S> fetchSlice(FilterValues<S> values, long from, java.lang.Long to) throws FetchException
FetchExceptionCursor<S> fetchSlice(FilterValues<S> values, long from, java.lang.Long to, Query.Controller controller) throws FetchException
controller - optional controller which can abort query operationFetchExceptionlong count(FilterValues<S> values) throws FetchException
FetchExceptionlong count(FilterValues<S> values, Query.Controller controller) throws FetchException
controller - optional controller which can abort query operationFetchExceptionFilter<S> getFilter()
OrderingList<S> getOrdering()
boolean printNative(java.lang.Appendable app,
int indentLevel,
FilterValues<S> values)
throws java.io.IOException
values - optionaljava.io.IOExceptionboolean printPlan(java.lang.Appendable app,
int indentLevel,
FilterValues<S> values)
throws java.io.IOException
values - optionaljava.io.IOExceptionCopyright © 2006-2013 Amazon Technologies, Inc.. All Rights Reserved.