Package io.camunda.zeebe.snapshots
Interface ImmutableChecksumsSFV
- All Known Subinterfaces:
MutableChecksumsSFV
- All Known Implementing Classes:
SfvChecksumImpl
public interface ImmutableChecksumsSFV
Immutable checksum collection in simple file verification (SFV) file format, which only allows to
read serialized file checksums or a combined checksum.
-
Method Summary
Modifier and TypeMethodDescriptionlongReturns some combined checksum over all the file checksums.booleanReturns if all file checksums match exactly.voidwrite(OutputStream stream) Write the checksum collection in SFV format to the given output stream.
-
Method Details
-
write
Write the checksum collection in SFV format to the given output stream.- Parameters:
stream- in which the data will be written to- Throws:
IOException
-
getChecksums
- Returns:
- the map containing the individual file checksums
-
sameChecksums
Returns if all file checksums match exactly.- Parameters:
o- The other checksum- Returns:
- boolean denoting match
-
getCombinedChecksum
long getCombinedChecksum()Returns some combined checksum over all the file checksums. If any of the individual checksums or file names change, the combined checksum will change as well.
-