Class SimilarityIndex

java.lang.Object
org.eclipse.jgit.diff.SimilarityIndex

public class SimilarityIndex extends Object
Index structure of lines/blocks in one file.

This structure can be used to compute an approximation of the similarity between two files. The index is used by SimilarityRenameDetector to compute scores between files.

To save space in memory, this index uses a space efficient encoding which will not exceed 1 MiB per instance. The index starts out at a smaller size (closer to 2 KiB), but may grow as more distinct blocks within the scanned file are discovered.

Since:
4.0