public class SearchingChangeCacheImpl extends java.lang.Object implements GitReferenceUpdatedListener
Modifier and Type | Class and Description |
---|---|
static class |
SearchingChangeCacheImpl.Module |
GitReferenceUpdatedListener.Event
Modifier and Type | Method and Description |
---|---|
java.util.List<ChangeData> |
getChangeData(ReviewDb db,
Project.NameKey project)
Read changes for the project from the secondary index.
|
void |
onGitReferenceUpdated(GitReferenceUpdatedListener.Event event) |
public java.util.List<ChangeData> getChangeData(ReviewDb db, 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(GitReferenceUpdatedListener.Event event)
onGitReferenceUpdated
in interface GitReferenceUpdatedListener