Class SearchingChangeCacheImpl

  • All Implemented Interfaces:
    GitReferenceUpdatedListener

    public class SearchingChangeCacheImpl
    extends Object
    implements GitReferenceUpdatedListener
    Cache based on an index query of the most recent changes. The number of cached items depends on the index implementation and configuration.

    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.

    • Method Detail

      • getChangeData

        public List<ChangeData> getChangeData​(Project.NameKey project)
        Read changes for the project from the secondary index.

        Returned changes only include the Change object (with id, branch) and the reviewers. Additional stored fields are not loaded from the index.

        Parameters:
        project - project to read.
        Returns:
        list of known changes; empty if no changes.