Class IndexedAccountQuery
- java.lang.Object
-
- com.google.gerrit.index.query.Predicate<T>
-
- com.google.gerrit.index.query.IndexedQuery<Account.Id,AccountState>
-
- com.google.gerrit.server.index.account.IndexedAccountQuery
-
- All Implemented Interfaces:
DataSource<AccountState>
,Matchable<AccountState>
,Paginated<AccountState>
public class IndexedAccountQuery extends IndexedQuery<Account.Id,AccountState> implements DataSource<AccountState>, Matchable<AccountState>
-
-
Field Summary
-
Fields inherited from class com.google.gerrit.index.query.IndexedQuery
index, source
-
-
Constructor Summary
Constructors Constructor Description IndexedAccountQuery(Index<Account.Id,AccountState> index, Predicate<AccountState> pred, QueryOptions opts)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getCost()
boolean
match(AccountState accountState)
Does this predicate match this object?-
Methods inherited from class com.google.gerrit.index.query.IndexedQuery
copy, equals, getCardinality, getChild, getChildCount, getChildren, getOptions, hashCode, read, readRaw, restart, toString
-
Methods inherited from class com.google.gerrit.index.query.Predicate
and, and, any, asMatchable, estimateCost, getLeafCount, isMatchable, not, or, or
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.google.gerrit.index.query.DataSource
getCardinality, read, readRaw
-
-
-
-
Constructor Detail
-
IndexedAccountQuery
public IndexedAccountQuery(Index<Account.Id,AccountState> index, Predicate<AccountState> pred, QueryOptions opts) throws QueryParseException
- Throws:
QueryParseException
-
-
Method Detail
-
match
public boolean match(AccountState accountState)
Description copied from interface:Matchable
Does this predicate match this object?- Specified by:
match
in interfaceMatchable<AccountState>
-
getCost
public int getCost()
- Specified by:
getCost
in interfaceMatchable<AccountState>
- Returns:
- a cost estimate to run this predicate, higher figures cost more.
-
-