|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.amazon.carbonado.qe.AbstractQueryExecutor<S>
com.amazon.carbonado.qe.IndexedQueryExecutor<S>
public class IndexedQueryExecutor<S extends Storable>
QueryExecutor which utilizes an index.
| Nested Class Summary | |
|---|---|
static interface |
IndexedQueryExecutor.Support<S extends Storable>
Provides support for IndexedQueryExecutor. |
| Constructor Summary | |
|---|---|
IndexedQueryExecutor(IndexedQueryExecutor.Support<S> support,
StorableIndex<S> index,
CompositeScore<S> score)
|
|
| Method Summary | |
|---|---|
Cursor<S> |
fetch(FilterValues<S> values)
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. |
Class<S> |
getStorableType()
Returns the storable type that this executor operates on. |
boolean |
printPlan(Appendable app,
int indentLevel,
FilterValues<S> values)
Prints the query plan to any appendable, if applicable. |
| Methods inherited from class com.amazon.carbonado.qe.AbstractQueryExecutor |
|---|
count, fetchSlice, increaseIndent, indent, newline, printNative |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
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 index
IllegalArgumentException - if any parameter is null
FetchException| Method Detail |
|---|
public 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
FetchExceptionpublic Filter<S> getCoveringFilter()
public Filter<S> getFilter()
QueryExecutor
public OrderingList<S> getOrdering()
QueryExecutor
public boolean printPlan(Appendable app,
int indentLevel,
FilterValues<S> values)
throws IOException
QueryExecutor
values - optional
IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||