private String calculateChecksum ( AlluxioURI filePath ) throws AlluxioException , IOException { OpenFilePOptions options = OpenFilePOptions . newBuilder ( ) . setReadType ( ReadPType . NO_CACHE ) . build ( ) ; try ( FileInStream fis = mFileSystem . openFile ( filePath , options ) ) { return DigestUtils . md5Hex ( fis ) ; } }
Calculates the md5 checksum for a file .