Package io.delta.kernel.statistics
Interface SnapshotStatistics
Provides statistics and metadata about a
Snapshot.-
Method Summary
Modifier and TypeMethodDescriptionDetermines the appropriate mode for writing a checksum file for this Snapshot.
-
Method Details
-
getChecksumWriteMode
Optional<Snapshot.ChecksumWriteMode> getChecksumWriteMode()Determines the appropriate mode for writing a checksum file for this Snapshot.The returned value can be passed to
Snapshot.writeChecksum(io.delta.kernel.engine.Engine, io.delta.kernel.Snapshot.ChecksumWriteMode)to write the checksum file using the most efficient approach available:Optional.empty()- Checksum already exists, no write neededOptionalofSnapshot.ChecksumWriteMode.SIMPLE- Fast write using in-memory CRC infoOptionalofSnapshot.ChecksumWriteMode.FULL- Requires log replay to compute CRC info
- Returns:
- the recommended checksum write mode, or empty if checksum already exists
-