|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.amazon.carbonado.qe.DelegatedQueryExecutor<S>
public class DelegatedQueryExecutor<S extends Storable>
QueryExecutor which delegates by executing a Query on a Storage.
| Constructor Summary | |
|---|---|
DelegatedQueryExecutor(Storage<S> rootStorage,
Filter<S> filter,
OrderingList<S> ordering)
|
|
DelegatedQueryExecutor(Storage<S> rootStorage,
QueryExecutor<S> executor)
|
|
| Method Summary | |
|---|---|
long |
count(FilterValues<S> values)
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> |
fetchSlice(FilterValues<S> values,
long from,
Long to)
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. |
Class<S> |
getStorableType()
Returns the storable type that this executor operates on. |
boolean |
printNative(Appendable app,
int indentLevel,
FilterValues<S> values)
Prints the native query to any appendable, if applicable. |
boolean |
printPlan(Appendable app,
int indentLevel,
FilterValues<S> values)
Prints the query plan to any appendable, if applicable. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DelegatedQueryExecutor(Storage<S> rootStorage,
QueryExecutor<S> executor)
throws FetchException
rootStorage - root storage to queryexecutor - executor to emulate
IllegalArgumentException - if any parameter is null
FetchException
public DelegatedQueryExecutor(Storage<S> rootStorage,
Filter<S> filter,
OrderingList<S> ordering)
throws FetchException
rootStorage - root storage to queryfilter - optional query filterordering - optional ordering
IllegalArgumentException - if rootStorage is null
FetchException| Method Detail |
|---|
public Class<S> getStorableType()
QueryExecutor
getStorableType in interface QueryExecutor<S extends Storable>
public Cursor<S> fetch(FilterValues<S> values)
throws FetchException
QueryExecutor
fetch in interface QueryExecutor<S extends Storable>FetchException
public Cursor<S> fetchSlice(FilterValues<S> values,
long from,
Long to)
throws FetchException
QueryExecutor
fetchSlice in interface QueryExecutor<S extends Storable>FetchException
public long count(FilterValues<S> values)
throws FetchException
QueryExecutor
count in interface QueryExecutor<S extends Storable>FetchExceptionpublic Filter<S> getFilter()
QueryExecutor
getFilter in interface QueryExecutor<S extends Storable>public OrderingList<S> getOrdering()
QueryExecutor
getOrdering in interface QueryExecutor<S extends Storable>
public boolean printNative(Appendable app,
int indentLevel,
FilterValues<S> values)
throws IOException
QueryExecutor
printNative in interface QueryExecutor<S extends Storable>values - optional
IOException
public boolean printPlan(Appendable app,
int indentLevel,
FilterValues<S> values)
throws IOException
QueryExecutor
printPlan in interface QueryExecutor<S extends Storable>values - optional
IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||