public abstract class AbstractQueryExecutor<S extends Storable> extends java.lang.Object implements QueryExecutor<S>
| Constructor and Description |
|---|
AbstractQueryExecutor() |
| 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> |
fetchSlice(FilterValues<S> values,
long from,
java.lang.Long to)
Produces a slice via skip and limit cursors.
|
Cursor<S> |
fetchSlice(FilterValues<S> values,
long from,
java.lang.Long to,
Query.Controller controller)
Produces a slice via skip and limit cursors.
|
java.lang.Class<S> |
getStorableType()
Returns the storable type that this executor operates on.
|
protected int |
increaseIndent(int indentLevel)
Adds a constant amount to the given indent level.
|
protected void |
indent(java.lang.Appendable app,
int indentLevel)
Appends spaces to the given appendable.
|
protected void |
newline(java.lang.Appendable app)
Appends a newline character.
|
boolean |
printNative(java.lang.Appendable app,
int indentLevel,
FilterValues<S> values)
Does nothing and returns false.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitfetch, fetch, getFilter, getOrdering, printPlanpublic java.lang.Class<S> getStorableType()
QueryExecutorgetStorableType in interface QueryExecutor<S extends Storable>public Cursor<S> fetchSlice(FilterValues<S> values, long from, java.lang.Long to) throws FetchException
fetchSlice in interface QueryExecutor<S extends Storable>FetchExceptionpublic Cursor<S> fetchSlice(FilterValues<S> values, long from, java.lang.Long to, Query.Controller controller) throws FetchException
fetchSlice in interface QueryExecutor<S extends Storable>controller - optional controller which can abort query operationFetchExceptionpublic long count(FilterValues<S> values) throws FetchException
count in interface QueryExecutor<S extends Storable>FetchExceptionpublic long count(FilterValues<S> values, Query.Controller controller) throws FetchException
count in interface QueryExecutor<S extends Storable>controller - optional controller which can abort query operationFetchExceptionpublic boolean printNative(java.lang.Appendable app,
int indentLevel,
FilterValues<S> values)
throws java.io.IOException
printNative in interface QueryExecutor<S extends Storable>values - optionaljava.io.IOExceptionprotected void indent(java.lang.Appendable app,
int indentLevel)
throws java.io.IOException
java.io.IOExceptionprotected void newline(java.lang.Appendable app)
throws java.io.IOException
java.io.IOExceptionprotected int increaseIndent(int indentLevel)
Copyright © 2006-2013 Amazon Technologies, Inc.. All Rights Reserved.