Class ModifiedFilesCacheKey
- java.lang.Object
-
- com.google.gerrit.server.patch.diff.ModifiedFilesCacheKey
-
public abstract class ModifiedFilesCacheKey extends Object
Cache key for theModifiedFilesCache
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ModifiedFilesCacheKey.Builder
static class
ModifiedFilesCacheKey.Serializer
-
Constructor Summary
Constructors Constructor Description ModifiedFilesCacheKey()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract org.eclipse.jgit.lib.ObjectId
aCommit()
abstract org.eclipse.jgit.lib.ObjectId
bCommit()
static ModifiedFilesCacheKey.Builder
builder()
abstract Project.NameKey
project()
A specific git project / repository.boolean
renameDetectionEnabled()
abstract int
renameScore()
Percentage score used to identify a file as a "rename".int
weight()
Returns the size of the object in bytes
-
-
-
Method Detail
-
project
public abstract Project.NameKey project()
A specific git project / repository.
-
aCommit
public abstract org.eclipse.jgit.lib.ObjectId aCommit()
- Returns:
- the old commit ID used in the git tree diff
-
bCommit
public abstract org.eclipse.jgit.lib.ObjectId bCommit()
- Returns:
- the new commit ID used in the git tree diff
-
renameScore
public abstract int renameScore()
Percentage score used to identify a file as a "rename". A special value of -1 means that the computation will ignore renames and rename detection will be disabled.
-
renameDetectionEnabled
public boolean renameDetectionEnabled()
-
weight
public int weight()
Returns the size of the object in bytes
-
builder
public static ModifiedFilesCacheKey.Builder builder()
-
-