|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.amazon.carbonado.qe.AbstractQueryExecutor<S>
com.amazon.carbonado.qe.FilteredQueryExecutor<S>
public class FilteredQueryExecutor<S extends Storable>
QueryExecutor which wraps another and filters results.
FilteredCursor| Constructor Summary | |
|---|---|
FilteredQueryExecutor(QueryExecutor<S> executor,
Filter<S> filter)
|
|
| Method Summary | |
|---|---|
Cursor<S> |
fetch(FilterValues<S> values)
Returns a new cursor using the given filter values. |
Filter<S> |
getFilter()
Returns the combined filter of the wrapped executor and the extra filter. |
OrderingList<S> |
getOrdering()
Returns the result ordering of this QueryExecutor. |
boolean |
printNative(Appendable app,
int indentLevel,
FilterValues<S> values)
Prints native query of the wrapped executor. |
boolean |
printPlan(Appendable app,
int indentLevel,
FilterValues<S> values)
Prints the query plan to any appendable, if applicable. |
| Methods inherited from class com.amazon.carbonado.qe.AbstractQueryExecutor |
|---|
count, fetchSlice, getStorableType, increaseIndent, indent, newline |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FilteredQueryExecutor(QueryExecutor<S> executor,
Filter<S> filter)
executor - executor to wrapfilter - filter to apply to cursor
IllegalArgumentException - if any argument is null or filter is open or closed| Method Detail |
|---|
public Cursor<S> fetch(FilterValues<S> values)
throws FetchException
QueryExecutor
FetchExceptionpublic Filter<S> getFilter()
public OrderingList<S> getOrdering()
QueryExecutor
public boolean printNative(Appendable app,
int indentLevel,
FilterValues<S> values)
throws IOException
printNative in interface QueryExecutor<S extends Storable>printNative in class AbstractQueryExecutor<S extends Storable>values - optional
IOException
public boolean printPlan(Appendable app,
int indentLevel,
FilterValues<S> values)
throws IOException
QueryExecutor
values - optional
IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||