public class SearchingChangeCacheImpl extends Object implements com.google.gerrit.extensions.events.GitReferenceUpdatedListener
Modifier and Type | Class and Description |
---|---|
static class |
SearchingChangeCacheImpl.Module |
Modifier and Type | Method and Description |
---|---|
List<ChangeData> |
getChangeData(com.google.gerrit.reviewdb.server.ReviewDb db,
com.google.gerrit.reviewdb.client.Project.NameKey project)
Read changes for the project from the secondary index.
|
void |
onGitReferenceUpdated(com.google.gerrit.extensions.events.GitReferenceUpdatedListener.Event event) |
public List<ChangeData> getChangeData(com.google.gerrit.reviewdb.server.ReviewDb db, com.google.gerrit.reviewdb.client.Project.NameKey project)
Returned changes only include the Change
object (with id, branch)
and the reviewers. Additional stored fields are not loaded from the index.
db
- database handle to populate missing change data (probably
unused).project
- project to read.public void onGitReferenceUpdated(com.google.gerrit.extensions.events.GitReferenceUpdatedListener.Event event)
onGitReferenceUpdated
in interface com.google.gerrit.extensions.events.GitReferenceUpdatedListener