|
||||||||||
| 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.SortedQueryExecutor<S>
public class SortedQueryExecutor<S extends Storable>
QueryExecutor which wraps another and sorts the results.
SortedCursor| Nested Class Summary | |
|---|---|
static class |
SortedQueryExecutor.ArraySortSupport<S extends Storable>
|
static class |
SortedQueryExecutor.MergeSortSupport<S extends Storable>
|
static interface |
SortedQueryExecutor.Support<S extends Storable>
Provides support for SortedQueryExecutor. |
| Constructor Summary | |
|---|---|
SortedQueryExecutor(SortedQueryExecutor.Support<S> support,
QueryExecutor<S> executor,
OrderingList<S> handledOrdering,
OrderingList<S> remainderOrdering)
|
|
| Method Summary | |
|---|---|
long |
count(FilterValues<S> values)
Counts results by opening a cursor and skipping entries. |
Cursor<S> |
fetch(FilterValues<S> values)
Returns a new cursor using the given filter values. |
Filter<S> |
getFilter()
Returns the filter used by this QueryExecutor. |
OrderingList<S> |
getOrdering()
Returns the result ordering of this QueryExecutor. |
boolean |
printNative(Appendable app,
int indentLevel,
FilterValues<S> values)
Prints native query of the wrapped executor. |
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 |
|---|
fetchSlice, getStorableType, increaseIndent, indent, newline |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SortedQueryExecutor(SortedQueryExecutor.Support<S> support,
QueryExecutor<S> executor,
OrderingList<S> handledOrdering,
OrderingList<S> remainderOrdering)
support - optional support to control sort buffer; if null, array is usedexecutor - executor to wraphandledOrdering - optional handled orderingremainderOrdering - required remainder ordering
IllegalArgumentException - if executor is null or if
remainder ordering is empty| Method Detail |
|---|
public Cursor<S> fetch(FilterValues<S> values)
throws FetchException
QueryExecutor
FetchException
public long count(FilterValues<S> values)
throws FetchException
AbstractQueryExecutor
count in interface QueryExecutor<S extends Storable>count in class AbstractQueryExecutor<S extends Storable>FetchExceptionpublic Filter<S> getFilter()
QueryExecutor
public OrderingList<S> getOrdering()
QueryExecutor
public boolean printNative(Appendable app,
int indentLevel,
FilterValues<S> values)
throws IOException
printNative in interface QueryExecutor<S extends Storable>printNative in class AbstractQueryExecutor<S extends Storable>values - optional
IOException
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 | |||||||||