Class FileDiffCacheKey
- java.lang.Object
-
- com.google.gerrit.server.patch.filediff.FileDiffCacheKey
-
public abstract class FileDiffCacheKey extends Object
Cache key for theFileDiffCache
.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
FileDiffCacheKey.Builder
static class
FileDiffCacheKey.Serializer
-
Constructor Summary
Constructors Constructor Description FileDiffCacheKey()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description static FileDiffCacheKey.Builder
builder()
abstract GitFileDiffCacheImpl.DiffAlgorithm
diffAlgorithm()
The diff algorithm that should be used in the computation.abstract org.eclipse.jgit.lib.ObjectId
newCommit()
The 20 bytes SHA-1 commit ID of the new commit used in the diff.abstract String
newFilePath()
File path identified by its name.abstract org.eclipse.jgit.lib.ObjectId
oldCommit()
The 20 bytes SHA-1 commit ID of the old commit used in the diff.abstract Project.NameKey
project()
A specific git project / repository.abstract int
renameScore()
Percentage score used to identify a file as a "rename".int
weight()
Number of bytes that this entity occupies.abstract DiffPreferencesInfo.Whitespace
whitespace()
-
-
-
Method Detail
-
project
public abstract Project.NameKey project()
A specific git project / repository.
-
oldCommit
public abstract org.eclipse.jgit.lib.ObjectId oldCommit()
The 20 bytes SHA-1 commit ID of the old commit used in the diff.
-
newCommit
public abstract org.eclipse.jgit.lib.ObjectId newCommit()
The 20 bytes SHA-1 commit ID of the new commit used in the diff.
-
newFilePath
public abstract String newFilePath()
File path identified by its name.
-
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.
-
diffAlgorithm
public abstract GitFileDiffCacheImpl.DiffAlgorithm diffAlgorithm()
The diff algorithm that should be used in the computation.
-
whitespace
public abstract DiffPreferencesInfo.Whitespace whitespace()
-
weight
public int weight()
Number of bytes that this entity occupies.
-
builder
public static FileDiffCacheKey.Builder builder()
-
-