Package org.apache.cassandra.spark.utils
Interface DigestAlgorithm
-
- All Known Implementing Classes:
MD5DigestAlgorithm,XXHash32DigestAlgorithm
public interface DigestAlgorithmInterface that computes aDigest
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description DigestcalculateFileDigest(java.nio.file.Path path)Calculates theDigestfor the given file in thepath.
-
-
-
Method Detail
-
calculateFileDigest
Digest calculateFileDigest(java.nio.file.Path path) throws java.io.IOException
Calculates theDigestfor the given file in thepath.- 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
-
-