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>
,HasCardinality
,Matchable<AccountState>
,Paginated<AccountState>
public class IndexedAccountQuery
extends IndexedQuery<Account.Id,AccountState>
implements DataSource<AccountState>, Matchable<AccountState>
-
Nested Class Summary
Nested classes/interfaces inherited from class com.google.gerrit.index.query.Predicate
Predicate.Any<T>
-
Field Summary
Fields inherited from class com.google.gerrit.index.query.IndexedQuery
index, source
-
Constructor Summary
ConstructorsConstructorDescriptionIndexedAccountQuery
(Index<Account.Id, AccountState> index, Predicate<AccountState> pred, QueryOptions opts) -
Method Summary
Modifier and TypeMethodDescriptionint
getCost()
Returns a cost estimate to run this predicate, higher figures cost more.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, restart, restart, toString
Methods inherited from class com.google.gerrit.index.query.Predicate
and, and, any, asMatchable, estimateCost, getFlattenedPredicateList, getLeafCount, getPredicateString, isLeaf, isMatchable, not, or, or, supportedForQueries
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
read, readRaw
Methods inherited from interface com.google.gerrit.index.query.HasCardinality
getCardinality
-
Constructor Details
-
IndexedAccountQuery
public IndexedAccountQuery(Index<Account.Id, AccountState> index, Predicate<AccountState> pred, QueryOptions opts) throws QueryParseException- Throws:
QueryParseException
-
-
Method Details
-
match
Description copied from interface:Matchable
Does this predicate match this object?- Specified by:
match
in interfaceMatchable<AccountState>
-
getCost
public int getCost()Description copied from interface:Matchable
Returns a cost estimate to run this predicate, higher figures cost more.- Specified by:
getCost
in interfaceMatchable<AccountState>
-