Package io.delta.kernel
Class TransactionCommitResult
Object
io.delta.kernel.TransactionCommitResult
Contains the result of a successful transaction commit. Returned by
Transaction.commit(Engine, CloseableIterable).- Since:
- 3.2.0
-
Constructor Summary
ConstructorsConstructorDescriptionTransactionCommitResult(long version, List<PostCommitHook> postCommitHooks, TransactionReport transactionReport, Optional<SnapshotImpl> postCommitSnapshotOpt) -
Method Summary
Modifier and TypeMethodDescriptionOperations for connector to trigger post-commit.Return the snapshot at the committed version.longContains the version of the transaction committed as.
-
Constructor Details
-
TransactionCommitResult
public TransactionCommitResult(long version, List<PostCommitHook> postCommitHooks, TransactionReport transactionReport, Optional<SnapshotImpl> postCommitSnapshotOpt)
-
-
Method Details
-
getVersion
public long getVersion()Contains the version of the transaction committed as.- Returns:
- version the transaction is committed as.
-
getPostCommitHooks
Operations for connector to trigger post-commit.Usage:
- Async: Call
PostCommitHook.threadSafeInvoke(Engine)in separate thread. - Sync: Direct call
PostCommitHook.threadSafeInvoke(Engine)and block until operation ends.
- Returns:
- list of post-commit operations
- Async: Call
-
getTransactionReport
- Returns:
- the report and metrics for this transaction
-
getPostCommitSnapshot
Return the snapshot at the committed version.Currently, Kernel does not support getting the post-commit snapshot for transactions that experienced conflicts.
-