public class IndexedQueryExecutor<S extends Storable> extends AbstractQueryExecutor<S>
Modifier and Type | Class and Description |
---|---|
static interface |
IndexedQueryExecutor.Support<S extends Storable>
Provides support for
IndexedQueryExecutor . |
Constructor and Description |
---|
IndexedQueryExecutor(IndexedQueryExecutor.Support<S> support,
StorableIndex<S> index,
CompositeScore<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> |
getCoveringFilter() |
Filter<S> |
getFilter()
Returns the filter used by this QueryExecutor.
|
OrderingList<S> |
getOrdering()
Returns the result ordering of this QueryExecutor.
|
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 IndexedQueryExecutor(IndexedQueryExecutor.Support<S> support, StorableIndex<S> index, CompositeScore<S> score) throws FetchException
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 nullFetchException
public 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> getCoveringFilter()
public Filter<S> getFilter()
QueryExecutor
public OrderingList<S> getOrdering()
QueryExecutor
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.