|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.amazon.carbonado.qe.AbstractQueryExecutor<S>
public abstract class AbstractQueryExecutor<S extends Storable>
AbstractQueryExecutor implements a small set of common QueryExecutor methods.
| Constructor Summary | |
|---|---|
AbstractQueryExecutor()
|
|
| Method Summary | |
|---|---|
long |
count(FilterValues<S> values)
Counts results by opening a cursor and skipping entries. |
Cursor<S> |
fetchSlice(FilterValues<S> values,
long from,
Long to)
Produces a slice via skip and limit cursors. |
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(Appendable app,
int indentLevel)
Appends spaces to the given appendable. |
protected void |
newline(Appendable app)
Appends a newline character. |
boolean |
printNative(Appendable app,
int indentLevel,
FilterValues<S> values)
Does nothing and returns false. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.amazon.carbonado.qe.QueryExecutor |
|---|
fetch, getFilter, getOrdering, printPlan |
| Constructor Detail |
|---|
public AbstractQueryExecutor()
| Method Detail |
|---|
public Class<S> getStorableType()
QueryExecutor
getStorableType in interface QueryExecutor<S extends Storable>
public Cursor<S> fetchSlice(FilterValues<S> values,
long from,
Long to)
throws FetchException
fetchSlice in interface QueryExecutor<S extends Storable>FetchException
public long count(FilterValues<S> values)
throws FetchException
count in interface QueryExecutor<S extends Storable>FetchException
public boolean printNative(Appendable app,
int indentLevel,
FilterValues<S> values)
throws IOException
printNative in interface QueryExecutor<S extends Storable>values - optional
IOException
protected void indent(Appendable app,
int indentLevel)
throws IOException
IOException
protected void newline(Appendable app)
throws IOException
IOExceptionprotected int increaseIndent(int indentLevel)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||