public class IndexedChangeQuery extends IndexedQuery<Change.Id,ChangeData> implements ChangeDataSource, Matchable<ChangeData>
IndexPredicate
together with a ChangeDataSource
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 ChangeDataSource
to be chosen by the query
processor.
index, source
Constructor and Description |
---|
IndexedChangeQuery(ChangeIndex index,
Predicate<ChangeData> pred,
QueryOptions opts) |
Modifier and Type | Method and Description |
---|---|
static QueryOptions |
createOptions(IndexConfig config,
int start,
int limit,
java.util.Set<java.lang.String> fields) |
int |
getCost() |
boolean |
hasChange() |
boolean |
match(ChangeData cd)
Does this predicate match this object?
|
static QueryOptions |
oneResult() |
ResultSet<ChangeData> |
read() |
copy, equals, getCardinality, getChild, getChildCount, getChildren, getOptions, hashCode, readRaw, restart, toString
and, and, any, asMatchable, estimateCost, getLeafCount, isMatchable, not, or, or
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getCardinality, readRaw
public IndexedChangeQuery(ChangeIndex index, Predicate<ChangeData> pred, QueryOptions opts) throws QueryParseException
QueryParseException
public static QueryOptions oneResult()
public static QueryOptions createOptions(IndexConfig config, int start, int limit, java.util.Set<java.lang.String> fields)
public ResultSet<ChangeData> read()
read
in interface DataSource<ChangeData>
read
in class IndexedQuery<Change.Id,ChangeData>
public boolean match(ChangeData cd)
Matchable
match
in interface Matchable<ChangeData>
public int getCost()
getCost
in interface Matchable<ChangeData>
public boolean hasChange()
hasChange
in interface ChangeDataSource