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