Module hash4j

Interface FileHashing


public interface FileHashing
Various implementations of hash functions for files.
  • Method Summary

    Static Methods
    Modifier and Type
    Method
    Description
    Returns a FileHasher128 implementing version 1.0.2 of the Imohash algorithm using default parameters.
    imohash1_0_2(int sampleSize, long sampleThreshold)
    Returns a FileHasher128 implementing version 1.0.2 of the Imohash algorithm using default parameters.
  • Method Details

    • imohash1_0_2

      static FileHasher128 imohash1_0_2()
      Returns a FileHasher128 implementing 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

      static FileHasher128 imohash1_0_2(int sampleSize, long sampleThreshold)
      Returns a FileHasher128 implementing 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 size
      sampleThreshold - the sample threshold
      Returns:
      a file hasher instance