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, printNative
public 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()
QueryExecutor
getStorableType
in interface QueryExecutor<S extends Storable>
getStorableType
in class AbstractQueryExecutor<S extends Storable>
public 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()
QueryExecutor
public OrderingList<S> getOrdering()
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.