Package com.google.gerrit.server.git
Class ChangesByProjectCacheImpl
java.lang.Object
com.google.gerrit.server.git.ChangesByProjectCacheImpl
- All Implemented Interfaces:
ChangesByProjectCache
Lightweight cache of changes in each project.
This cache is intended to be used when filtering references and stores only the minimal fields required for a read permission check.
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface com.google.gerrit.server.git.ChangesByProjectCache
ChangesByProjectCache.UseIndex
-
Method Summary
Modifier and TypeMethodDescriptionstreamChangeDatas
(Project.NameKey project, org.eclipse.jgit.lib.Repository repo) Stream changeDatas for the project
-
Method Details
-
streamChangeDatas
public Stream<ChangeData> streamChangeDatas(Project.NameKey project, org.eclipse.jgit.lib.Repository repo) throws IOException Stream changeDatas for the project- Specified by:
streamChangeDatas
in interfaceChangesByProjectCache
- Parameters:
project
- project to read.repo
- repository for the project to read.- Returns:
- Stream of known changes; empty if no changes.
- Throws:
IOException
-