|
||||||||||
| 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.UnionQueryExecutor<S>
public class UnionQueryExecutor<S extends Storable>
QueryExecutor which wraps several others and unions the results.
UnionCursor| Constructor Summary | |
|---|---|
UnionQueryExecutor(List<QueryExecutor<S>> executors)
|
|
UnionQueryExecutor(List<QueryExecutor<S>> executors,
OrderingList<S> totalOrdering)
|
|
UnionQueryExecutor(QueryExecutor<S>... executors)
|
|
| 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 executors. |
OrderingList<S> |
getOrdering()
Returns the result ordering of this QueryExecutor. |
boolean |
printNative(Appendable app,
int indentLevel,
FilterValues<S> values)
Prints native queries of the wrapped executors. |
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 UnionQueryExecutor(QueryExecutor<S>... executors)
executors - executors to wrap, each must have the exact same total ordering
IllegalArgumentException - if any parameter is null or if ordering doesn't matchpublic UnionQueryExecutor(List<QueryExecutor<S>> executors)
executors - executors to wrap, each must have the exact same total ordering
IllegalArgumentException - if any executors is null or if ordering doesn't match
public UnionQueryExecutor(List<QueryExecutor<S>> executors,
OrderingList<S> totalOrdering)
executors - executors to wrap, each must have the exact same total orderingtotalOrdering - effective total ordering of executors
IllegalArgumentException - if executors is null| 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 | |||||||||