public class UnionQueryExecutor<S extends Storable> extends AbstractQueryExecutor<S>
UnionCursor
Constructor and Description |
---|
UnionQueryExecutor(java.util.List<QueryExecutor<S>> executors) |
UnionQueryExecutor(java.util.List<QueryExecutor<S>> executors,
OrderingList<S> totalOrdering) |
UnionQueryExecutor(QueryExecutor<S>... executors) |
Modifier and Type | Method and Description |
---|---|
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.
|
Filter<S> |
getFilter()
Returns the combined filter of the wrapped executors.
|
OrderingList<S> |
getOrdering()
Returns the result ordering of this QueryExecutor.
|
boolean |
printNative(java.lang.Appendable app,
int indentLevel,
FilterValues<S> values)
Prints native queries of the wrapped executors.
|
boolean |
printPlan(java.lang.Appendable app,
int indentLevel,
FilterValues<S> values)
Prints the query plan to any appendable, if applicable.
|
count, count, fetchSlice, fetchSlice, getStorableType, increaseIndent, indent, newline
public UnionQueryExecutor(QueryExecutor<S>... executors)
executors
- executors to wrap, each must have the exact same total orderingjava.lang.IllegalArgumentException
- if any parameter is null or if ordering doesn't matchpublic UnionQueryExecutor(java.util.List<QueryExecutor<S>> executors)
executors
- executors to wrap, each must have the exact same total orderingjava.lang.IllegalArgumentException
- if any executors is null or if ordering doesn't matchpublic UnionQueryExecutor(java.util.List<QueryExecutor<S>> executors, OrderingList<S> totalOrdering)
executors
- executors to wrap, each must have the exact same total orderingtotalOrdering
- effective total ordering of executorsjava.lang.IllegalArgumentException
- if executors is nullpublic Cursor<S> fetch(FilterValues<S> values) throws FetchException
QueryExecutor
FetchException
public Cursor<S> fetch(FilterValues<S> values, Query.Controller controller) throws FetchException
QueryExecutor
controller
- optional controller which can abort query operationFetchException
public Filter<S> getFilter()
public OrderingList<S> getOrdering()
QueryExecutor
public boolean printNative(java.lang.Appendable app, int indentLevel, FilterValues<S> values) throws java.io.IOException
printNative
in interface QueryExecutor<S extends Storable>
printNative
in class AbstractQueryExecutor<S extends Storable>
values
- optionaljava.io.IOException
public boolean printPlan(java.lang.Appendable app, int indentLevel, FilterValues<S> values) throws java.io.IOException
QueryExecutor
values
- optionaljava.io.IOException
Copyright © 2006-2013 Amazon Technologies, Inc.. All Rights Reserved.