Package com.google.gerrit.server.git
Class ChangesByProjectCacheImpl
- java.lang.Object
-
- com.google.gerrit.server.git.ChangesByProjectCacheImpl
-
- All Implemented Interfaces:
ChangesByProjectCache
public class ChangesByProjectCacheImpl extends Object implements 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 Classes Modifier and Type Class Description static class
ChangesByProjectCacheImpl.Module
-
Nested classes/interfaces inherited from interface com.google.gerrit.server.git.ChangesByProjectCache
ChangesByProjectCache.UseIndex
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stream<ChangeData>
streamChangeDatas(Project.NameKey project, org.eclipse.jgit.lib.Repository repo)
Stream changeDatas for the project
-
-
-
Method Detail
-
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
-
-