public class KeyQueryExecutor<S extends Storable> extends AbstractQueryExecutor<S>
| Modifier and Type | Class and Description |
|---|---|
static interface |
KeyQueryExecutor.Support<S extends Storable>
Provides support for
KeyQueryExecutor. |
| Constructor and Description |
|---|
KeyQueryExecutor(KeyQueryExecutor.Support<S> support,
StorableIndex<S> index,
FilteringScore<S> score) |
| 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 filter used by this QueryExecutor.
|
OrderingList<S> |
getOrdering()
Returns an empty list.
|
java.lang.Class<S> |
getStorableType()
Returns the storable type that this executor operates on.
|
boolean |
printPlan(java.lang.Appendable app,
int indentLevel,
FilterValues<S> values)
Prints the query plan to any appendable, if applicable.
|
count, count, fetchSlice, fetchSlice, increaseIndent, indent, newline, printNativepublic KeyQueryExecutor(KeyQueryExecutor.Support<S> support, StorableIndex<S> index, FilteringScore<S> score)
index - index to use, which may be a primary key indexscore - score determines how best to utilize the indexjava.lang.IllegalArgumentException - if any parameter is null or if index is
not unique or if score is not a key matchpublic java.lang.Class<S> getStorableType()
QueryExecutorgetStorableType in interface QueryExecutor<S extends Storable>getStorableType in class AbstractQueryExecutor<S extends Storable>public Cursor<S> fetch(FilterValues<S> values) throws FetchException
QueryExecutorFetchExceptionpublic Cursor<S> fetch(FilterValues<S> values, Query.Controller controller) throws FetchException
QueryExecutorcontroller - optional controller which can abort query operationFetchExceptionpublic Filter<S> getFilter()
QueryExecutorpublic OrderingList<S> getOrdering()
public boolean printPlan(java.lang.Appendable app,
int indentLevel,
FilterValues<S> values)
throws java.io.IOException
QueryExecutorvalues - optionaljava.io.IOExceptionCopyright © 2006-2013 Amazon Technologies, Inc.. All Rights Reserved.