Package org.apache.cassandra.spark.utils
Class XXHash32DigestAlgorithm
- java.lang.Object
-
- org.apache.cassandra.spark.utils.XXHash32DigestAlgorithm
-
- All Implemented Interfaces:
DigestAlgorithm
public class XXHash32DigestAlgorithm extends java.lang.Object implements DigestAlgorithm
ADigestAlgorithmimplementation that computes XXHash32 digests
-
-
Constructor Summary
Constructors Constructor Description XXHash32DigestAlgorithm()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DigestcalculateFileDigest(java.nio.file.Path path)Calculates theXXHash32Digestfor the given file in thepath.
-
-
-
Method Detail
-
calculateFileDigest
public Digest calculateFileDigest(java.nio.file.Path path) throws java.io.IOException
Calculates theXXHash32Digestfor the given file in thepath.- Specified by:
calculateFileDigestin interfaceDigestAlgorithm- Parameters:
path- the path of the file- Returns:
- the calculated digest for the given
path - Throws:
java.io.IOException- when an error occurs while reading the file or calculating the digest
-
-