public class DelegatedQueryExecutor<S extends Storable> extends java.lang.Object implements QueryExecutor<S>
| Constructor and Description |
|---|
DelegatedQueryExecutor(Storage<S> rootStorage,
Filter<S> filter,
OrderingList<S> ordering) |
DelegatedQueryExecutor(Storage<S> rootStorage,
QueryExecutor<S> executor) |
| 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.
|
public DelegatedQueryExecutor(Storage<S> rootStorage, QueryExecutor<S> executor) throws FetchException
rootStorage - root storage to queryexecutor - executor to emulatejava.lang.IllegalArgumentException - if any parameter is nullFetchExceptionpublic DelegatedQueryExecutor(Storage<S> rootStorage, Filter<S> filter, OrderingList<S> ordering) throws FetchException
rootStorage - root storage to queryfilter - optional query filterordering - optional orderingjava.lang.IllegalArgumentException - if rootStorage is nullFetchExceptionpublic java.lang.Class<S> getStorableType()
QueryExecutorgetStorableType in interface QueryExecutor<S extends Storable>public Cursor<S> fetch(FilterValues<S> values) throws FetchException
QueryExecutorfetch in interface QueryExecutor<S extends Storable>FetchExceptionpublic Cursor<S> fetch(FilterValues<S> values, Query.Controller controller) throws FetchException
QueryExecutorfetch in interface QueryExecutor<S extends Storable>controller - optional controller which can abort query operationFetchExceptionpublic Cursor<S> fetchSlice(FilterValues<S> values, long from, java.lang.Long to) throws FetchException
QueryExecutorfetchSlice in interface QueryExecutor<S extends Storable>FetchExceptionpublic Cursor<S> fetchSlice(FilterValues<S> values, long from, java.lang.Long to, Query.Controller controller) throws FetchException
QueryExecutorfetchSlice in interface QueryExecutor<S extends Storable>controller - optional controller which can abort query operationFetchExceptionpublic long count(FilterValues<S> values) throws FetchException
QueryExecutorcount in interface QueryExecutor<S extends Storable>FetchExceptionpublic long count(FilterValues<S> values, Query.Controller controller) throws FetchException
QueryExecutorcount in interface QueryExecutor<S extends Storable>controller - optional controller which can abort query operationFetchExceptionpublic Filter<S> getFilter()
QueryExecutorgetFilter in interface QueryExecutor<S extends Storable>public OrderingList<S> getOrdering()
QueryExecutorgetOrdering in interface QueryExecutor<S extends Storable>public boolean printNative(java.lang.Appendable app,
int indentLevel,
FilterValues<S> values)
throws java.io.IOException
QueryExecutorprintNative in interface QueryExecutor<S extends Storable>values - optionaljava.io.IOExceptionpublic boolean printPlan(java.lang.Appendable app,
int indentLevel,
FilterValues<S> values)
throws java.io.IOException
QueryExecutorprintPlan in interface QueryExecutor<S extends Storable>values - optionaljava.io.IOExceptionCopyright © 2006-2013 Amazon Technologies, Inc.. All Rights Reserved.