Class ModifiedFilesCacheKey

java.lang.Object
com.google.gerrit.server.patch.diff.ModifiedFilesCacheKey

public abstract class ModifiedFilesCacheKey extends Object
Cache key for the ModifiedFilesCache
  • Constructor Details

    • ModifiedFilesCacheKey

      public ModifiedFilesCacheKey()
  • Method Details

    • 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()