public class HBaseTransactionManager extends AbstractTransactionManager implements HBaseTransactionClient
| Modifier and Type | Class and Description |
|---|---|
static class |
HBaseTransactionManager.Builder |
AbstractTransactionManager.TransactionFactory<T extends CellId>commitTableClient, tsoClient| Modifier and Type | Method and Description |
|---|---|
static HBaseTransactionManager.Builder |
builder(HBaseOmidClientConfiguration hbaseOmidClientConf) |
void |
closeResources() |
OmidClientConfiguration.ConflictDetectionLevel |
getConflictDetectionLevel() |
long |
getHashForTable(byte[] tableName) |
long |
getLowWatermark() |
static TransactionManager |
newInstance() |
static TransactionManager |
newInstance(HBaseOmidClientConfiguration configuration) |
void |
preCommit(AbstractTransaction<? extends CellId> transaction) |
void |
preRollback(AbstractTransaction<? extends CellId> transaction) |
void |
setConflictDetectionLevel(OmidClientConfiguration.ConflictDetectionLevel conflictDetectionLevel) |
begin, close, commit, fence, getCommitTableClient, isLowLatency, postBegin, postCommit, postRollback, preBegin, rollbackpublic static TransactionManager newInstance() throws IOException, InterruptedException
IOExceptionInterruptedExceptionpublic static TransactionManager newInstance(HBaseOmidClientConfiguration configuration) throws IOException, InterruptedException
IOExceptionInterruptedExceptionpublic static HBaseTransactionManager.Builder builder(HBaseOmidClientConfiguration hbaseOmidClientConf)
public void closeResources()
throws IOException
closeResources in class AbstractTransactionManagerIOExceptionpublic void preCommit(AbstractTransaction<? extends CellId> transaction) throws TransactionManagerException
preCommit in class AbstractTransactionManagerTransactionManagerExceptionpublic void preRollback(AbstractTransaction<? extends CellId> transaction) throws TransactionManagerException
preRollback in class AbstractTransactionManagerTransactionManagerExceptionpublic long getHashForTable(byte[] tableName)
getHashForTable in class AbstractTransactionManagerpublic long getLowWatermark()
throws TransactionException
getLowWatermark in interface HBaseTransactionClientTransactionExceptionpublic void setConflictDetectionLevel(OmidClientConfiguration.ConflictDetectionLevel conflictDetectionLevel)
public OmidClientConfiguration.ConflictDetectionLevel getConflictDetectionLevel()
Copyright © 2011–2023 Apache Software Foundation. All rights reserved.