Package com.google.gerrit.server.patch
Class PatchListCacheImpl
- java.lang.Object
-
- com.google.gerrit.server.patch.PatchListCacheImpl
-
- All Implemented Interfaces:
PatchListCache
public class PatchListCacheImpl extends Object implements PatchListCache
Provides a cached list ofPatchListEntry
.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
PatchListCacheImpl.LargeObjectTombstone
Used to cache negative results infileCache
.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description PatchList
get(Change change, PatchSet patchSet)
Returns the patch list - list of modified files - between two commits.PatchList
get(PatchListKey key, Project.NameKey project)
Returns the patch list - list of modified files - between two commits.DiffSummary
getDiffSummary(DiffSummaryKey key, Project.NameKey project)
IntraLineDiff
getIntraLineDiff(IntraLineDiffKey key, IntraLineDiffArgs args)
org.eclipse.jgit.lib.ObjectId
getOldId(Change change, PatchSet patchSet, Integer parentNum)
Returns the patch list - list of modified files - between two commits.static com.google.inject.Module
module()
-
-
-
Field Detail
-
FILE_NAME
public static final String FILE_NAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
module
public static com.google.inject.Module module()
-
get
public PatchList get(PatchListKey key, Project.NameKey project) throws PatchListNotAvailableException
Description copied from interface:PatchListCache
Returns the patch list - list of modified files - between two commits.- Specified by:
get
in interfacePatchListCache
- Parameters:
key
- identifies the old / new commits.project
- name key identifying a specific git project (repository).- Returns:
- patch list containing the modified files between two commits.
- Throws:
PatchListNotAvailableException
-
get
public PatchList get(Change change, PatchSet patchSet) throws PatchListNotAvailableException
Description copied from interface:PatchListCache
Returns the patch list - list of modified files - between two commits.- Specified by:
get
in interfacePatchListCache
- Parameters:
change
- entity containing all change data.patchSet
- single revision of aChange
.- Returns:
- patch list containing the modified files between two commits.
- Throws:
PatchListNotAvailableException
-
getOldId
public org.eclipse.jgit.lib.ObjectId getOldId(Change change, PatchSet patchSet, Integer parentNum) throws PatchListNotAvailableException
Description copied from interface:PatchListCache
Returns the patch list - list of modified files - between two commits.- Specified by:
getOldId
in interfacePatchListCache
- Parameters:
change
- entity containing all change data.patchSet
- single revision of aChange
.parentNum
- 1-based parent number when new commit used in comparison is a merge commit.- Returns:
- patch list containing the modified files between two commits.
- Throws:
PatchListNotAvailableException
-
getIntraLineDiff
public IntraLineDiff getIntraLineDiff(IntraLineDiffKey key, IntraLineDiffArgs args)
- Specified by:
getIntraLineDiff
in interfacePatchListCache
-
getDiffSummary
public DiffSummary getDiffSummary(DiffSummaryKey key, Project.NameKey project) throws PatchListNotAvailableException
- Specified by:
getDiffSummary
in interfacePatchListCache
- Throws:
PatchListNotAvailableException
-
-