public class FilteredQueryExecutor<S extends Storable> extends AbstractQueryExecutor<S>
FilteredCursor
Constructor and Description |
---|
FilteredQueryExecutor(QueryExecutor<S> executor,
Filter<S> filter) |
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 executor and the extra filter.
|
OrderingList<S> |
getOrdering()
Returns the result ordering of this QueryExecutor.
|
boolean |
printNative(java.lang.Appendable app,
int indentLevel,
FilterValues<S> values)
Prints native query of the wrapped executor.
|
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 FilteredQueryExecutor(QueryExecutor<S> executor, Filter<S> filter)
executor
- executor to wrapfilter
- filter to apply to cursorjava.lang.IllegalArgumentException
- if any argument is null or filter is open or closedpublic 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.