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 classPatchListCacheImpl.LargeObjectTombstoneUsed to cache negative results infileCache.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description PatchListget(Change change, PatchSet patchSet)Returns the patch list - list of modified files - between two commits.PatchListget(PatchListKey key, Project.NameKey project)Returns the patch list - list of modified files - between two commits.DiffSummarygetDiffSummary(DiffSummaryKey key, Project.NameKey project)IntraLineDiffgetIntraLineDiff(IntraLineDiffKey key, IntraLineDiffArgs args)org.eclipse.jgit.lib.ObjectIdgetOldId(Change change, PatchSet patchSet, Integer parentNum)Returns the patch list - list of modified files - between two commits.static com.google.inject.Modulemodule()
-
-
-
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:PatchListCacheReturns the patch list - list of modified files - between two commits.- Specified by:
getin 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:PatchListCacheReturns the patch list - list of modified files - between two commits.- Specified by:
getin 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:PatchListCacheReturns the patch list - list of modified files - between two commits.- Specified by:
getOldIdin 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:
getIntraLineDiffin interfacePatchListCache
-
getDiffSummary
public DiffSummary getDiffSummary(DiffSummaryKey key, Project.NameKey project) throws PatchListNotAvailableException
- Specified by:
getDiffSummaryin interfacePatchListCache- Throws:
PatchListNotAvailableException
-
-