public class SearchingChangeCacheImpl extends java.lang.Object implements GitReferenceUpdatedListener
This cache is intended to be used when filtering references. By design it returns only a fraction of all changes. These are the changes that were modified last.
Modifier and Type | Class and Description |
---|---|
static class |
SearchingChangeCacheImpl.CachedChange |
static class |
SearchingChangeCacheImpl.Module |
GitReferenceUpdatedListener.Event
Modifier and Type | Method and Description |
---|---|
java.util.List<ChangeData> |
getChangeData(Project.NameKey project)
Read changes for the project from the secondary index.
|
void |
onGitReferenceUpdated(GitReferenceUpdatedListener.Event event) |
public java.util.List<ChangeData> getChangeData(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.
project
- project to read.public void onGitReferenceUpdated(GitReferenceUpdatedListener.Event event)
onGitReferenceUpdated
in interface GitReferenceUpdatedListener