Package io.delta.kernel.metrics
Interface SnapshotReport
- All Superinterfaces:
DeltaOperationReport,MetricsReport
- All Known Implementing Classes:
SnapshotReportImpl
Defines the metadata and metrics for a snapshot construction
MetricsReport-
Method Summary
Modifier and TypeMethodDescriptiondefault StringFor a time-travel by version query, this is the version provided.Methods inherited from interface io.delta.kernel.metrics.DeltaOperationReport
getException, getReportUUID, getTablePathMethods inherited from interface io.delta.kernel.metrics.MetricsReport
toJson
-
Method Details
-
getVersion
For a time-travel by version query, this is the version provided. For a time-travel by timestamp query, this is the version resolved from the provided timestamp. For a latest snapshot, this is the version read from the delta log.This is empty when this report is for a failed snapshot construction, and the error occurs before a version can be resolved.
- Returns:
- the version of the snapshot
-
getProvidedTimestamp
- Returns:
- the timestamp provided for time-travel, empty if this is not a timestamp-based time-travel query
-
getCheckpointVersion
- Returns:
- the version of the checkpoint used for this snapshot, empty if no checkpoint was used or if this is a failed snapshot construction
-
getSnapshotMetrics
SnapshotMetricsResult getSnapshotMetrics()- Returns:
- the metrics for this snapshot construction
-
getOperationType
- Specified by:
getOperationTypein interfaceDeltaOperationReport- Returns:
- a string representation of the operation this report is for
-