Class InternalChangeQuery
java.lang.Object
com.google.gerrit.index.query.InternalQuery<ChangeData,InternalChangeQuery>
com.google.gerrit.server.query.change.InternalChangeQuery
Query wrapper for the change 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 TypeMethodDescriptionbyBranchCommit(BranchNameKey branch, String hash) byBranchCommit(String project, String branch, String hash) byBranchCommitOpen(String project, String branch, String hash) static Predicate<ChangeData>byBranchCommitOpenPred(Project.NameKey project, String branch, String hash) byBranchKey(BranchNameKey branch, Change.Key key) byBranchNew(BranchNameKey branch) byBranchOpen(BranchNameKey branch) byCommit(org.eclipse.jgit.lib.ObjectId id) byCommitsOnBranchNotMerged(org.eclipse.jgit.lib.Repository repo, BranchNameKey branch, Collection<String> hashes) byCustomKeyedValue(String keyValue) byKey(Change.Key key) byKeyPrefix(String prefix) byOpenEditByUser(Account.Id accountId) byProject(Project.NameKey project) byProjectCommit(Project.NameKey project, String hash) byProjectCommit(Project.NameKey project, org.eclipse.jgit.lib.ObjectId id) byProjectCommits(Project.NameKey project, List<String> hashes) static com.google.common.collect.ImmutableList<ChangeData>byProjectGroups(com.google.inject.Provider<InternalChangeQuery> queryProvider, IndexConfig indexConfig, Project.NameKey project, Collection<String> groups) byProjectOpen(Project.NameKey project) bySubmissionId(String cs) byTopicOpen(String topic) Methods inherited from class com.google.gerrit.index.query.InternalQuery
enforceVisibility, noFields, query, query, queryExhaustively, schema, self, setLimit, setRequestedFields
-
Method Details
-
byKey
-
byKeyPrefix
-
byLegacyChangeId
-
byLegacyChangeIds
-
byCustomKeyedValue
-
byBranchKey
-
byProject
-
byBranchOpen
-
byBranchNew
-
byCommitsOnBranchNotMerged
public Iterable<ChangeData> byCommitsOnBranchNotMerged(org.eclipse.jgit.lib.Repository repo, BranchNameKey branch, Collection<String> hashes) throws IOException - Throws:
IOException
-
byProjectOpen
-
byTopicOpen
-
byOpenEditByUser
- Throws:
QueryParseException
-
byCommit
-
byCommit
-
byProjectCommit
-
byProjectCommit
-
byProjectCommits
-
byBranchCommit
-
byBranchCommit
-
byBranchCommitOpen
-
byBranchCommitOpenPred
public static Predicate<ChangeData> byBranchCommitOpenPred(Project.NameKey project, String branch, String hash) -
bySubmissionId
-
byProjectGroups
public static com.google.common.collect.ImmutableList<ChangeData> byProjectGroups(com.google.inject.Provider<InternalChangeQuery> queryProvider, IndexConfig indexConfig, Project.NameKey project, Collection<String> groups)
-