public class TransactionAwareHTable extends AbstractTransactionAwareTable implements org.apache.hadoop.hbase.client.Table, TransactionAware
AbstractTransactionAwareTable.ActionChangeallowNonTransactional, changeSets, conflictLevel, pre014ChangeSetKey, SEPARATOR_BYTE_ARRAY, tx, txCodec| Constructor and Description |
|---|
TransactionAwareHTable(org.apache.hadoop.hbase.client.Table hTable)
Create a transactional aware instance of the passed HTable
|
TransactionAwareHTable(org.apache.hadoop.hbase.client.Table hTable,
boolean allowNonTransactional)
Create a transactional aware instance of the passed HTable, with the option of allowing
non-transactional operations.
|
TransactionAwareHTable(org.apache.hadoop.hbase.client.Table hTable,
TxConstants.ConflictDetection conflictLevel)
Create a transactional aware instance of the passed HTable
|
TransactionAwareHTable(org.apache.hadoop.hbase.client.Table hTable,
TxConstants.ConflictDetection conflictLevel,
boolean allowNonTransactional)
Create a transactional aware instance of the passed HTable, with the option of allowing
non-transactional operations.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addToOperation(org.apache.hadoop.hbase.client.OperationWithAttributes op,
Transaction tx) |
org.apache.hadoop.hbase.client.Result |
append(org.apache.hadoop.hbase.client.Append append) |
void |
batch(List<? extends org.apache.hadoop.hbase.client.Row> actions,
Object[] results) |
<R> void |
batchCallback(List<? extends org.apache.hadoop.hbase.client.Row> actions,
Object[] results,
org.apache.hadoop.hbase.client.coprocessor.Batch.Callback<R> callback) |
<R extends com.google.protobuf.Message> |
batchCoprocessorService(com.google.protobuf.Descriptors.MethodDescriptor methodDescriptor,
com.google.protobuf.Message request,
byte[] startKey,
byte[] endKey,
R responsePrototype) |
<R extends com.google.protobuf.Message> |
batchCoprocessorService(com.google.protobuf.Descriptors.MethodDescriptor methodDescriptor,
com.google.protobuf.Message request,
byte[] startKey,
byte[] endKey,
R responsePrototype,
org.apache.hadoop.hbase.client.coprocessor.Batch.Callback<R> callback) |
boolean |
checkAndDelete(byte[] row,
byte[] family,
byte[] qualifier,
byte[] value,
org.apache.hadoop.hbase.client.Delete delete) |
boolean |
checkAndDelete(byte[] bytes,
byte[] bytes1,
byte[] bytes2,
org.apache.hadoop.hbase.filter.CompareFilter.CompareOp compareOp,
byte[] bytes3,
org.apache.hadoop.hbase.client.Delete delete) |
boolean |
checkAndDelete(byte[] row,
byte[] family,
byte[] qualifier,
org.apache.hadoop.hbase.CompareOperator op,
byte[] value,
org.apache.hadoop.hbase.client.Delete delete) |
org.apache.hadoop.hbase.client.Table.CheckAndMutateBuilder |
checkAndMutate(byte[] row,
byte[] family) |
boolean |
checkAndMutate(byte[] row,
byte[] family,
byte[] qualifier,
org.apache.hadoop.hbase.filter.CompareFilter.CompareOp compareOp,
byte[] value,
org.apache.hadoop.hbase.client.RowMutations rowMutations) |
boolean |
checkAndMutate(byte[] row,
byte[] family,
byte[] qualifier,
org.apache.hadoop.hbase.CompareOperator op,
byte[] value,
org.apache.hadoop.hbase.client.RowMutations mutation) |
boolean |
checkAndPut(byte[] row,
byte[] family,
byte[] qualifier,
byte[] value,
org.apache.hadoop.hbase.client.Put put) |
boolean |
checkAndPut(byte[] bytes,
byte[] bytes1,
byte[] bytes2,
org.apache.hadoop.hbase.filter.CompareFilter.CompareOp compareOp,
byte[] bytes3,
org.apache.hadoop.hbase.client.Put put) |
boolean |
checkAndPut(byte[] row,
byte[] family,
byte[] qualifier,
org.apache.hadoop.hbase.CompareOperator op,
byte[] value,
org.apache.hadoop.hbase.client.Put put) |
void |
close() |
org.apache.hadoop.hbase.ipc.CoprocessorRpcChannel |
coprocessorService(byte[] row) |
<T extends com.google.protobuf.Service,R> |
coprocessorService(Class<T> service,
byte[] startKey,
byte[] endKey,
org.apache.hadoop.hbase.client.coprocessor.Batch.Call<T,R> callable) |
<T extends com.google.protobuf.Service,R> |
coprocessorService(Class<T> service,
byte[] startKey,
byte[] endKey,
org.apache.hadoop.hbase.client.coprocessor.Batch.Call<T,R> callable,
org.apache.hadoop.hbase.client.coprocessor.Batch.Callback<R> callback) |
void |
delete(org.apache.hadoop.hbase.client.Delete delete) |
void |
delete(List<org.apache.hadoop.hbase.client.Delete> deletes) |
protected boolean |
doCommit() |
protected boolean |
doRollback() |
boolean |
exists(org.apache.hadoop.hbase.client.Get get) |
boolean[] |
exists(List<org.apache.hadoop.hbase.client.Get> gets) |
boolean[] |
existsAll(List<org.apache.hadoop.hbase.client.Get> gets) |
org.apache.hadoop.hbase.client.Result |
get(org.apache.hadoop.hbase.client.Get get) |
org.apache.hadoop.hbase.client.Result[] |
get(List<org.apache.hadoop.hbase.client.Get> gets) |
org.apache.hadoop.conf.Configuration |
getConfiguration() |
org.apache.hadoop.hbase.client.TableDescriptor |
getDescriptor() |
org.apache.hadoop.hbase.TableName |
getName() |
int |
getOperationTimeout() |
long |
getOperationTimeout(TimeUnit unit) |
int |
getReadRpcTimeout() |
long |
getReadRpcTimeout(TimeUnit unit) |
int |
getRpcTimeout() |
long |
getRpcTimeout(TimeUnit unit) |
org.apache.hadoop.hbase.client.ResultScanner |
getScanner(byte[] family) |
org.apache.hadoop.hbase.client.ResultScanner |
getScanner(byte[] family,
byte[] qualifier) |
org.apache.hadoop.hbase.client.ResultScanner |
getScanner(org.apache.hadoop.hbase.client.Scan scan) |
org.apache.hadoop.hbase.HTableDescriptor |
getTableDescriptor() |
protected byte[] |
getTableKey() |
int |
getWriteRpcTimeout() |
long |
getWriteRpcTimeout(TimeUnit unit) |
org.apache.hadoop.hbase.client.Result |
increment(org.apache.hadoop.hbase.client.Increment increment) |
long |
incrementColumnValue(byte[] row,
byte[] family,
byte[] qualifier,
long amount) |
long |
incrementColumnValue(byte[] row,
byte[] family,
byte[] qualifier,
long amount,
org.apache.hadoop.hbase.client.Durability durability) |
protected void |
makeRollbackOperation(org.apache.hadoop.hbase.client.Delete delete) |
void |
mutateRow(org.apache.hadoop.hbase.client.RowMutations rm) |
void |
put(List<org.apache.hadoop.hbase.client.Put> puts) |
void |
put(org.apache.hadoop.hbase.client.Put put) |
void |
setOperationTimeout(int operationTimeout) |
void |
setReadRpcTimeout(int readRpcTimeout) |
void |
setRpcTimeout(int rpcTimeout) |
void |
setWriteRpcTimeout(int writeRpcTimeout) |
addToChangeSet, commitTx, getAllowNonTransactional, getChangeKey, getTransactionAwareName, getTxChanges, getVIntBytes, postTxCommit, rollbackTx, setAllowNonTransactional, startTx, updateTxclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcommitTx, getTransactionAwareName, getTxChanges, postTxCommit, rollbackTx, startTx, updateTxpublic TransactionAwareHTable(org.apache.hadoop.hbase.client.Table hTable)
hTable - underlying HBase table to usepublic TransactionAwareHTable(org.apache.hadoop.hbase.client.Table hTable,
TxConstants.ConflictDetection conflictLevel)
hTable - underlying HBase table to useconflictLevel - level of conflict detection to perform (defaults to COLUMN)public TransactionAwareHTable(org.apache.hadoop.hbase.client.Table hTable,
boolean allowNonTransactional)
hTable - underlying HBase table to useallowNonTransactional - if true, additional operations (checkAndPut, increment,
checkAndDelete) will be available, though non-transactionalpublic TransactionAwareHTable(org.apache.hadoop.hbase.client.Table hTable,
TxConstants.ConflictDetection conflictLevel,
boolean allowNonTransactional)
hTable - underlying HBase table to useconflictLevel - level of conflict detection to perform (defaults to COLUMN)allowNonTransactional - if true, additional operations (checkAndPut, increment,
checkAndDelete) will be available, though non-transactionalprotected byte[] getTableKey()
getTableKey in class AbstractTransactionAwareTableprotected boolean doCommit()
throws IOException
doCommit in class AbstractTransactionAwareTableIOExceptionprotected boolean doRollback()
throws Exception
doRollback in class AbstractTransactionAwareTableExceptionpublic org.apache.hadoop.hbase.TableName getName()
getName in interface org.apache.hadoop.hbase.client.Tablepublic org.apache.hadoop.conf.Configuration getConfiguration()
getConfiguration in interface org.apache.hadoop.hbase.client.Tablepublic org.apache.hadoop.hbase.HTableDescriptor getTableDescriptor()
throws IOException
getTableDescriptor in interface org.apache.hadoop.hbase.client.TableIOExceptionpublic boolean exists(org.apache.hadoop.hbase.client.Get get)
throws IOException
exists in interface org.apache.hadoop.hbase.client.TableIOExceptionpublic void batch(List<? extends org.apache.hadoop.hbase.client.Row> actions, Object[] results) throws IOException, InterruptedException
batch in interface org.apache.hadoop.hbase.client.TableIOExceptionInterruptedExceptionpublic <R> void batchCallback(List<? extends org.apache.hadoop.hbase.client.Row> actions, Object[] results, org.apache.hadoop.hbase.client.coprocessor.Batch.Callback<R> callback) throws IOException, InterruptedException
batchCallback in interface org.apache.hadoop.hbase.client.TableIOExceptionInterruptedExceptionpublic org.apache.hadoop.hbase.client.Result get(org.apache.hadoop.hbase.client.Get get)
throws IOException
get in interface org.apache.hadoop.hbase.client.TableIOExceptionpublic org.apache.hadoop.hbase.client.Result[] get(List<org.apache.hadoop.hbase.client.Get> gets) throws IOException
get in interface org.apache.hadoop.hbase.client.TableIOExceptionpublic org.apache.hadoop.hbase.client.ResultScanner getScanner(org.apache.hadoop.hbase.client.Scan scan)
throws IOException
getScanner in interface org.apache.hadoop.hbase.client.TableIOExceptionpublic org.apache.hadoop.hbase.client.ResultScanner getScanner(byte[] family)
throws IOException
getScanner in interface org.apache.hadoop.hbase.client.TableIOExceptionpublic org.apache.hadoop.hbase.client.ResultScanner getScanner(byte[] family,
byte[] qualifier)
throws IOException
getScanner in interface org.apache.hadoop.hbase.client.TableIOExceptionpublic void put(org.apache.hadoop.hbase.client.Put put)
throws IOException
put in interface org.apache.hadoop.hbase.client.TableIOExceptionpublic void put(List<org.apache.hadoop.hbase.client.Put> puts) throws IOException
put in interface org.apache.hadoop.hbase.client.TableIOExceptionpublic void delete(org.apache.hadoop.hbase.client.Delete delete)
throws IOException
delete in interface org.apache.hadoop.hbase.client.TableIOExceptionpublic void delete(List<org.apache.hadoop.hbase.client.Delete> deletes) throws IOException
delete in interface org.apache.hadoop.hbase.client.TableIOExceptionpublic boolean checkAndPut(byte[] row,
byte[] family,
byte[] qualifier,
byte[] value,
org.apache.hadoop.hbase.client.Put put)
throws IOException
checkAndPut in interface org.apache.hadoop.hbase.client.TableIOExceptionpublic boolean checkAndDelete(byte[] row,
byte[] family,
byte[] qualifier,
byte[] value,
org.apache.hadoop.hbase.client.Delete delete)
throws IOException
checkAndDelete in interface org.apache.hadoop.hbase.client.TableIOExceptionpublic boolean checkAndDelete(byte[] bytes,
byte[] bytes1,
byte[] bytes2,
org.apache.hadoop.hbase.filter.CompareFilter.CompareOp compareOp,
byte[] bytes3,
org.apache.hadoop.hbase.client.Delete delete)
throws IOException
checkAndDelete in interface org.apache.hadoop.hbase.client.TableIOExceptionpublic boolean checkAndPut(byte[] bytes,
byte[] bytes1,
byte[] bytes2,
org.apache.hadoop.hbase.filter.CompareFilter.CompareOp compareOp,
byte[] bytes3,
org.apache.hadoop.hbase.client.Put put)
throws IOException
checkAndPut in interface org.apache.hadoop.hbase.client.TableIOExceptionpublic boolean checkAndMutate(byte[] row,
byte[] family,
byte[] qualifier,
org.apache.hadoop.hbase.filter.CompareFilter.CompareOp compareOp,
byte[] value,
org.apache.hadoop.hbase.client.RowMutations rowMutations)
throws IOException
checkAndMutate in interface org.apache.hadoop.hbase.client.TableIOExceptionpublic boolean checkAndPut(byte[] row,
byte[] family,
byte[] qualifier,
org.apache.hadoop.hbase.CompareOperator op,
byte[] value,
org.apache.hadoop.hbase.client.Put put)
throws IOException
checkAndPut in interface org.apache.hadoop.hbase.client.TableIOExceptionpublic boolean checkAndDelete(byte[] row,
byte[] family,
byte[] qualifier,
org.apache.hadoop.hbase.CompareOperator op,
byte[] value,
org.apache.hadoop.hbase.client.Delete delete)
throws IOException
checkAndDelete in interface org.apache.hadoop.hbase.client.TableIOExceptionpublic boolean checkAndMutate(byte[] row,
byte[] family,
byte[] qualifier,
org.apache.hadoop.hbase.CompareOperator op,
byte[] value,
org.apache.hadoop.hbase.client.RowMutations mutation)
throws IOException
checkAndMutate in interface org.apache.hadoop.hbase.client.TableIOExceptionpublic boolean[] existsAll(List<org.apache.hadoop.hbase.client.Get> gets) throws IOException
existsAll in interface org.apache.hadoop.hbase.client.TableIOExceptionpublic void mutateRow(org.apache.hadoop.hbase.client.RowMutations rm)
throws IOException
mutateRow in interface org.apache.hadoop.hbase.client.TableIOExceptionpublic org.apache.hadoop.hbase.client.Result append(org.apache.hadoop.hbase.client.Append append)
throws IOException
append in interface org.apache.hadoop.hbase.client.TableIOExceptionpublic org.apache.hadoop.hbase.client.Result increment(org.apache.hadoop.hbase.client.Increment increment)
throws IOException
increment in interface org.apache.hadoop.hbase.client.TableIOExceptionpublic long incrementColumnValue(byte[] row,
byte[] family,
byte[] qualifier,
long amount)
throws IOException
incrementColumnValue in interface org.apache.hadoop.hbase.client.TableIOExceptionpublic long incrementColumnValue(byte[] row,
byte[] family,
byte[] qualifier,
long amount,
org.apache.hadoop.hbase.client.Durability durability)
throws IOException
incrementColumnValue in interface org.apache.hadoop.hbase.client.TableIOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in interface org.apache.hadoop.hbase.client.TableIOExceptionpublic org.apache.hadoop.hbase.ipc.CoprocessorRpcChannel coprocessorService(byte[] row)
coprocessorService in interface org.apache.hadoop.hbase.client.Tablepublic <T extends com.google.protobuf.Service,R> Map<byte[],R> coprocessorService(Class<T> service, byte[] startKey, byte[] endKey, org.apache.hadoop.hbase.client.coprocessor.Batch.Call<T,R> callable) throws com.google.protobuf.ServiceException, Throwable
coprocessorService in interface org.apache.hadoop.hbase.client.Tablecom.google.protobuf.ServiceExceptionThrowablepublic <T extends com.google.protobuf.Service,R> void coprocessorService(Class<T> service, byte[] startKey, byte[] endKey, org.apache.hadoop.hbase.client.coprocessor.Batch.Call<T,R> callable, org.apache.hadoop.hbase.client.coprocessor.Batch.Callback<R> callback) throws com.google.protobuf.ServiceException, Throwable
coprocessorService in interface org.apache.hadoop.hbase.client.Tablecom.google.protobuf.ServiceExceptionThrowablepublic <R extends com.google.protobuf.Message> Map<byte[],R> batchCoprocessorService(com.google.protobuf.Descriptors.MethodDescriptor methodDescriptor, com.google.protobuf.Message request, byte[] startKey, byte[] endKey, R responsePrototype) throws com.google.protobuf.ServiceException, Throwable
batchCoprocessorService in interface org.apache.hadoop.hbase.client.Tablecom.google.protobuf.ServiceExceptionThrowablepublic <R extends com.google.protobuf.Message> void batchCoprocessorService(com.google.protobuf.Descriptors.MethodDescriptor methodDescriptor,
com.google.protobuf.Message request,
byte[] startKey,
byte[] endKey,
R responsePrototype,
org.apache.hadoop.hbase.client.coprocessor.Batch.Callback<R> callback)
throws com.google.protobuf.ServiceException,
Throwable
batchCoprocessorService in interface org.apache.hadoop.hbase.client.Tablecom.google.protobuf.ServiceExceptionThrowablepublic void addToOperation(org.apache.hadoop.hbase.client.OperationWithAttributes op,
Transaction tx)
throws IOException
IOExceptionprotected void makeRollbackOperation(org.apache.hadoop.hbase.client.Delete delete)
public org.apache.hadoop.hbase.client.TableDescriptor getDescriptor()
throws IOException
getDescriptor in interface org.apache.hadoop.hbase.client.TableIOExceptionpublic boolean[] exists(List<org.apache.hadoop.hbase.client.Get> gets) throws IOException
exists in interface org.apache.hadoop.hbase.client.TableIOExceptionpublic long getRpcTimeout(TimeUnit unit)
getRpcTimeout in interface org.apache.hadoop.hbase.client.Tablepublic int getRpcTimeout()
getRpcTimeout in interface org.apache.hadoop.hbase.client.Tablepublic void setRpcTimeout(int rpcTimeout)
setRpcTimeout in interface org.apache.hadoop.hbase.client.Tablepublic long getReadRpcTimeout(TimeUnit unit)
getReadRpcTimeout in interface org.apache.hadoop.hbase.client.Tablepublic int getReadRpcTimeout()
getReadRpcTimeout in interface org.apache.hadoop.hbase.client.Tablepublic void setReadRpcTimeout(int readRpcTimeout)
setReadRpcTimeout in interface org.apache.hadoop.hbase.client.Tablepublic long getWriteRpcTimeout(TimeUnit unit)
getWriteRpcTimeout in interface org.apache.hadoop.hbase.client.Tablepublic int getWriteRpcTimeout()
getWriteRpcTimeout in interface org.apache.hadoop.hbase.client.Tablepublic void setWriteRpcTimeout(int writeRpcTimeout)
setWriteRpcTimeout in interface org.apache.hadoop.hbase.client.Tablepublic long getOperationTimeout(TimeUnit unit)
getOperationTimeout in interface org.apache.hadoop.hbase.client.Tablepublic int getOperationTimeout()
getOperationTimeout in interface org.apache.hadoop.hbase.client.Tablepublic void setOperationTimeout(int operationTimeout)
setOperationTimeout in interface org.apache.hadoop.hbase.client.Tablepublic org.apache.hadoop.hbase.client.Table.CheckAndMutateBuilder checkAndMutate(byte[] row,
byte[] family)
checkAndMutate in interface org.apache.hadoop.hbase.client.TableCopyright © 2021 The Apache Software Foundation. All rights reserved.