Class IndexedAccountQuery
- java.lang.Object
-
- com.google.gerrit.index.query.Predicate<T>
-
- com.google.gerrit.index.IndexedQuery<Account.Id,AccountState>
-
- com.google.gerrit.server.index.account.IndexedAccountQuery
-
- All Implemented Interfaces:
com.google.gerrit.index.query.DataSource<AccountState>
,com.google.gerrit.index.query.Matchable<AccountState>
,com.google.gerrit.index.query.Paginated<AccountState>
public class IndexedAccountQuery extends com.google.gerrit.index.IndexedQuery<Account.Id,AccountState> implements com.google.gerrit.index.query.DataSource<AccountState>, com.google.gerrit.index.query.Matchable<AccountState>
-
-
Constructor Summary
Constructors Constructor Description IndexedAccountQuery(com.google.gerrit.index.Index<Account.Id,AccountState> index, com.google.gerrit.index.query.Predicate<AccountState> pred, com.google.gerrit.index.QueryOptions opts)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getCost()
boolean
match(AccountState accountState)
-
Methods inherited from class com.google.gerrit.index.IndexedQuery
copy, equals, getCardinality, getChild, getChildCount, getChildren, getOptions, hashCode, read, restart, toString
-
Methods inherited from class com.google.gerrit.index.query.Predicate
and, and, any, asMatchable, estimateCost, isMatchable, not, or, or
-
-
-
-
Constructor Detail
-
IndexedAccountQuery
public IndexedAccountQuery(com.google.gerrit.index.Index<Account.Id,AccountState> index, com.google.gerrit.index.query.Predicate<AccountState> pred, com.google.gerrit.index.QueryOptions opts) throws QueryParseException
- Throws:
QueryParseException
-
-
Method Detail
-
match
public boolean match(AccountState accountState) throws com.google.gwtorm.server.OrmException
- Specified by:
match
in interfacecom.google.gerrit.index.query.Matchable<AccountState>
- Throws:
com.google.gwtorm.server.OrmException
-
getCost
public int getCost()
- Specified by:
getCost
in interfacecom.google.gerrit.index.query.Matchable<AccountState>
-
-