Class InternalGroupQuery
java.lang.Object
com.google.gerrit.index.query.InternalQuery<InternalGroup,InternalGroupQuery>
com.google.gerrit.server.query.group.InternalGroupQuery
Query wrapper for the group index.
Instances are one-time-use. Other singleton classes should inject a Provider rather than holding on to a single instance.
-
Field Summary
Fields inherited from class com.google.gerrit.index.query.InternalQuery
indexConfig, indexes
-
Method Summary
Modifier and TypeMethodDescriptionbyId
(AccountGroup.Id groupId) byMember
(Account.Id memberId) byName
(AccountGroup.NameKey groupName) Map<AccountGroup.UUID,
com.google.common.collect.ImmutableSet<AccountGroup.UUID>> bySubgroups
(com.google.common.collect.ImmutableSet<AccountGroup.UUID> subgroupIds) Get all immediate parents of the providedsubgroupIds
.Methods inherited from class com.google.gerrit.index.query.InternalQuery
enforceVisibility, noFields, query, query, queryExhaustively, schema, self, setLimit, setRequestedFields
-
Method Details
-
byName
-
byId
-
byMember
-
bySubgroups
public Map<AccountGroup.UUID,com.google.common.collect.ImmutableSet<AccountGroup.UUID>> bySubgroups(com.google.common.collect.ImmutableSet<AccountGroup.UUID> subgroupIds) Get all immediate parents of the providedsubgroupIds
.- Returns:
- map pointing from children to list of its immediate parents
-