I - The type of the IDs by which the entities are stored in the index.T - The type of the entities that are stored in the index.public class IndexedQuery<I,T> extends Predicate<T> implements DataSource<T>, Paginated<T>
IndexPredicate together with a DataSource that returns
matching results from the index.
Appropriate to return as the rootmost predicate that can be processed using the secondary
index; such predicates must also implement DataSource to be chosen by the query
processor.
| Modifier and Type | Field and Description |
|---|---|
protected Index<I,T> |
index |
protected DataSource<T> |
source |
| Constructor and Description |
|---|
IndexedQuery(Index<I,T> index,
Predicate<T> pred,
QueryOptions opts) |
| Modifier and Type | Method and Description |
|---|---|
Predicate<T> |
copy(Collection<? extends Predicate<T>> children)
Create a copy of this predicate, with new children.
|
boolean |
equals(Object other) |
int |
getCardinality() |
Predicate<T> |
getChild(int i)
Same as
getChildren().get(i) |
int |
getChildCount()
Same as
getChildren().size() |
List<Predicate<T>> |
getChildren()
Get the children of this predicate, if any.
|
QueryOptions |
getOptions() |
int |
hashCode() |
ResultSet<T> |
read() |
ResultSet<FieldBundle> |
readRaw() |
ResultSet<T> |
restart(int start) |
String |
toString() |
and, and, any, asMatchable, estimateCost, getLeafCount, isMatchable, not, or, orprotected DataSource<T> source
public IndexedQuery(Index<I,T> index, Predicate<T> pred, QueryOptions opts) throws QueryParseException
QueryParseExceptionpublic int getChildCount()
PredicategetChildren().size()getChildCount in class Predicate<T>public Predicate<T> getChild(int i)
PredicategetChildren().get(i)public List<Predicate<T>> getChildren()
PredicategetChildren in class Predicate<T>public QueryOptions getOptions()
getOptions in interface Paginated<T>public int getCardinality()
getCardinality in interface DataSource<T>DataSource.read().public ResultSet<T> read()
read in interface DataSource<T>public ResultSet<FieldBundle> readRaw()
readRaw in interface DataSource<T>public Predicate<T> copy(Collection<? extends Predicate<T>> children)
Predicate