public class TransactionManager extends Object implements Serializable
| Modifier and Type | Field and Description |
|---|---|
protected Option<HoodieInstant> |
currentTxnOwnerInstant |
protected boolean |
isLockRequired |
protected LockManager |
lockManager |
protected static org.slf4j.Logger |
LOG |
| Modifier | Constructor and Description |
|---|---|
|
TransactionManager(HoodieWriteConfig config,
org.apache.hadoop.fs.FileSystem fs) |
protected |
TransactionManager(LockManager lockManager,
boolean isLockRequired) |
| Modifier and Type | Method and Description |
|---|---|
void |
beginTransaction(Option<HoodieInstant> newTxnOwnerInstant,
Option<HoodieInstant> lastCompletedTxnOwnerInstant) |
void |
close() |
void |
endTransaction(Option<HoodieInstant> currentTxnOwnerInstant) |
Option<HoodieInstant> |
getCurrentTransactionOwner() |
Option<HoodieInstant> |
getLastCompletedTransactionOwner() |
LockManager |
getLockManager() |
boolean |
isLockRequired() |
protected boolean |
reset(Option<HoodieInstant> callerInstant,
Option<HoodieInstant> newTxnOwnerInstant,
Option<HoodieInstant> lastCompletedTxnOwnerInstant) |
protected static final org.slf4j.Logger LOG
protected final LockManager lockManager
protected final boolean isLockRequired
protected Option<HoodieInstant> currentTxnOwnerInstant
public TransactionManager(HoodieWriteConfig config, org.apache.hadoop.fs.FileSystem fs)
protected TransactionManager(LockManager lockManager, boolean isLockRequired)
public void beginTransaction(Option<HoodieInstant> newTxnOwnerInstant, Option<HoodieInstant> lastCompletedTxnOwnerInstant)
public void endTransaction(Option<HoodieInstant> currentTxnOwnerInstant)
protected boolean reset(Option<HoodieInstant> callerInstant, Option<HoodieInstant> newTxnOwnerInstant, Option<HoodieInstant> lastCompletedTxnOwnerInstant)
public void close()
public LockManager getLockManager()
public Option<HoodieInstant> getLastCompletedTransactionOwner()
public Option<HoodieInstant> getCurrentTransactionOwner()
public boolean isLockRequired()
Copyright © 2023 The Apache Software Foundation. All rights reserved.