public interface FileHashing
Various implementations of hash functions for files.
-
Method Summary
Static MethodsModifier and TypeMethodDescriptionstatic FileHasher128Returns aFileHasher128implementing version 1.0.2 of the Imohash algorithm using default parameters.static FileHasher128imohash1_0_2(int sampleSize, long sampleThreshold) Returns aFileHasher128implementing version 1.0.2 of the Imohash algorithm using default parameters.
-
Method Details
-
imohash1_0_2
Returns aFileHasher128implementing version 1.0.2 of the Imohash algorithm using default parameters.This implementation is compatible with the Go reference implementation imohash.go.
For a description of the algorithm see here.
This algorithm does not return a uniformly distributed hash value.
- Returns:
- a file hasher instance
-
imohash1_0_2
Returns aFileHasher128implementing version 1.0.2 of the Imohash algorithm using default parameters.This implementation is compatible with the Go reference implementation imohash.go.
For a description of the algorithm and the parameters see here.
This algorithm does not return a uniformly distributed hash value.
- Parameters:
sampleSize- the sample sizesampleThreshold- the sample threshold- Returns:
- a file hasher instance
-