Package io.delta.kernel.metrics
Interface TransactionReport
- All Superinterfaces:
DeltaOperationReport
,MetricsReport
Defines the metadata and metrics for a transaction
MetricsReport
-
Method Summary
Modifier and TypeMethodDescriptionlong
The version of the table the transaction was created from.default String
Methods inherited from interface io.delta.kernel.metrics.DeltaOperationReport
getException, getReportUUID, getTablePath
-
Method Details
-
getOperation
String getOperation()- Returns:
- The
Operation
provided when the transaction was created usingTable.createTransactionBuilder(io.delta.kernel.engine.Engine, java.lang.String, io.delta.kernel.Operation)
.
-
getEngineInfo
String getEngineInfo()- Returns:
- The engineInfo provided when the transaction was created using
Table.createTransactionBuilder(io.delta.kernel.engine.Engine, java.lang.String, io.delta.kernel.Operation)
.
-
getBaseSnapshotVersion
long getBaseSnapshotVersion()The version of the table the transaction was created from. For example, if the latest table version is 4 when the transaction is created, the transaction is based off of the snapshot of the table at version 4. For a new table (e.g. a transaction that is creating a table) this is -1.- Returns:
- the table version of the snapshot the transaction was started from
-
getSnapshotReportUUID
- Returns:
- the
DeltaOperationReport.getReportUUID()
of the SnapshotReport for the transaction's snapshot construction. Empty for a new table transaction.
-
getCommittedVersion
- Returns:
- the version committed to the table in this transaction. Empty for a failed transaction.
-
getTransactionMetrics
TransactionMetricsResult getTransactionMetrics()- Returns:
- the metrics for this transaction
-
getOperationType
- Specified by:
getOperationType
in interfaceDeltaOperationReport
- Returns:
- a string representation of the operation this report is for
-