public class SortedQueryExecutor<S extends Storable> extends AbstractQueryExecutor<S>
SortedCursor
Modifier and Type | Class and Description |
---|---|
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 and Description |
---|
SortedQueryExecutor(SortedQueryExecutor.Support<S> support,
QueryExecutor<S> executor,
OrderingList<S> handledOrdering,
OrderingList<S> remainderOrdering) |
Modifier and Type | Method and Description |
---|---|
long |
count(FilterValues<S> values)
Counts results by opening a cursor and skipping entries.
|
long |
count(FilterValues<S> values,
Query.Controller controller)
Counts results by opening a cursor and skipping entries.
|
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 the result ordering of this QueryExecutor.
|
boolean |
printNative(java.lang.Appendable app,
int indentLevel,
FilterValues<S> values)
Prints native query of the wrapped executor.
|
boolean |
printPlan(java.lang.Appendable app,
int indentLevel,
FilterValues<S> values)
Prints the query plan to any appendable, if applicable.
|
fetchSlice, fetchSlice, getStorableType, increaseIndent, indent, newline
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 orderingjava.lang.IllegalArgumentException
- if executor is null or if
remainder ordering is emptypublic 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 long count(FilterValues<S> values) throws FetchException
AbstractQueryExecutor
count
in interface QueryExecutor<S extends Storable>
count
in class AbstractQueryExecutor<S extends Storable>
FetchException
public long count(FilterValues<S> values, Query.Controller controller) throws FetchException
AbstractQueryExecutor
count
in interface QueryExecutor<S extends Storable>
count
in class AbstractQueryExecutor<S extends Storable>
controller
- optional controller which can abort query operationFetchException
public Filter<S> getFilter()
QueryExecutor
public OrderingList<S> getOrdering()
QueryExecutor
public boolean printNative(java.lang.Appendable app, int indentLevel, FilterValues<S> values) throws java.io.IOException
printNative
in interface QueryExecutor<S extends Storable>
printNative
in class AbstractQueryExecutor<S extends Storable>
values
- optionaljava.io.IOException
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.