Package dev.frostlake.transaction
Class TableLock
java.lang.Object
dev.frostlake.transaction.TableLock
One table-level lock a transaction is HOLDING, as
SHOW LOCKS reports it (live-verified):
partition-rewriting DML — UPDATE, DELETE (even one matching no rows), MERGE, TRUNCATE — registers
a PARTITIONS lock on the table's fully qualified name, one row per (transaction, table)
however many statements touch it, released when the transaction ends. An append-only INSERT holds
no lock. acquiredOn is the FIRST touch; queryId is the query that acquired it.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlongEpoch millis of the first statement that touched the table in this transaction.The id of the query that acquired the lock.
-
Constructor Details
-
TableLock
-
-
Method Details
-
getAcquiredOn
public long getAcquiredOn()Epoch millis of the first statement that touched the table in this transaction. -
getQueryId
The id of the query that acquired the lock.
-