|
||||||||||
| 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.IterableQueryExecutor<S>
public class IterableQueryExecutor<S extends Storable>
QueryExecutor which fully scans an iterable collection.
IteratorCursor| Constructor Summary | |
|---|---|
IterableQueryExecutor(Class<S> type,
Iterable<S> iterable)
|
|
IterableQueryExecutor(Class<S> type,
Iterable<S> iterable,
Lock lock)
|
|
| Method Summary | |
|---|---|
Cursor<S> |
fetch(FilterValues<S> values)
Returns a new cursor using the given filter values. |
Filter<S> |
getFilter()
Returns an open filter. |
OrderingList<S> |
getOrdering()
Returns an empty list. |
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, getStorableType, 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 IterableQueryExecutor(Class<S> type,
Iterable<S> iterable)
type - type of Storableiterable - collection to iterate over, or null for empty cursor
IllegalArgumentException - if type is null
public IterableQueryExecutor(Class<S> type,
Iterable<S> iterable,
Lock lock)
type - type of Storableiterable - collection to iterate over, or null for empty cursorlock - optional lock to hold while cursor is open
IllegalArgumentException - if type is null| Method Detail |
|---|
public Filter<S> getFilter()
public Cursor<S> fetch(FilterValues<S> values)
QueryExecutor
public OrderingList<S> getOrdering()
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 | |||||||||