PostCommitHook¶
PostCommitHook
is an abstraction of post-commit hooks that can be executed (at the end of transaction commit).
Contract¶
Name¶
name: String
User-friendly name of the hook for error reporting
Executing Post-Commit Hook¶
run(
spark: SparkSession,
txn: OptimisticTransactionImpl,
committedActions: Seq[Action]): Unit
Used when:
OptimisticTransactionImpl
is requested to runPostCommitHooks (at the end of transaction commit).