Class IndexedGroupQuery
java.lang.Object
com.google.gerrit.index.query.Predicate<T>
com.google.gerrit.index.query.IndexedQuery<AccountGroup.UUID,InternalGroup>
com.google.gerrit.server.index.group.IndexedGroupQuery
- All Implemented Interfaces:
DataSource<InternalGroup>
,HasCardinality
,Matchable<InternalGroup>
,Paginated<InternalGroup>
public class IndexedGroupQuery
extends IndexedQuery<AccountGroup.UUID,InternalGroup>
implements DataSource<InternalGroup>, Matchable<InternalGroup>
-
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
ConstructorsConstructorDescriptionIndexedGroupQuery
(Index<AccountGroup.UUID, InternalGroup> index, Predicate<InternalGroup> pred, QueryOptions opts) -
Method Summary
Modifier and TypeMethodDescriptionstatic QueryOptions
createOptions
(IndexConfig config, int start, int pageSize, int limit, Set<String> fields) int
getCost()
Returns a cost estimate to run this predicate, higher figures cost more.boolean
match
(InternalGroup object) 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
-
IndexedGroupQuery
public IndexedGroupQuery(Index<AccountGroup.UUID, InternalGroup> index, Predicate<InternalGroup> pred, QueryOptions opts) throws QueryParseException- Throws:
QueryParseException
-
-
Method Details
-
createOptions
public static QueryOptions createOptions(IndexConfig config, int start, int pageSize, int limit, Set<String> fields) -
match
Description copied from interface:Matchable
Does this predicate match this object?- Specified by:
match
in interfaceMatchable<InternalGroup>
-
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<InternalGroup>
-