@InternalApi(value="For internal usage only") public abstract class AbstractBigtableTable extends Object implements org.apache.hadoop.hbase.client.Table
For internal use only - public for technical reasons.
| Modifier and Type | Class and Description |
|---|---|
static class |
AbstractBigtableTable.UnsupportedOperationsHandler |
| Modifier and Type | Field and Description |
|---|---|
protected AbstractBigtableConnection |
bigtableConnection |
protected DataClientWrapper |
clientWrapper |
protected HBaseRequestAdapter |
hbaseAdapter |
protected static Logger |
LOG
Constant
LOG |
protected BigtableHBaseSettings |
settings |
protected org.apache.hadoop.hbase.TableName |
tableName |
| Constructor and Description |
|---|
AbstractBigtableTable(AbstractBigtableConnection bigtableConnection,
HBaseRequestAdapter hbaseAdapter)
Constructed by BigtableConnection
|
| Modifier and Type | Method and Description |
|---|---|
org.apache.hadoop.hbase.client.Result |
append(org.apache.hadoop.hbase.client.Append append) |
Object[] |
batch(List<? extends org.apache.hadoop.hbase.client.Row> actions)
Deprecated.
|
void |
batch(List<? extends org.apache.hadoop.hbase.client.Row> actions,
Object[] results) |
<R> Object[] |
batchCallback(List<? extends org.apache.hadoop.hbase.client.Row> actions,
org.apache.hadoop.hbase.client.coprocessor.Batch.Callback<R> callback)
Deprecated.
|
<R> void |
batchCallback(List<? extends org.apache.hadoop.hbase.client.Row> actions,
Object[] results,
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[] row,
byte[] family,
byte[] qualifier,
org.apache.hadoop.hbase.filter.CompareFilter.CompareOp compareOp,
byte[] value,
org.apache.hadoop.hbase.client.Delete delete) |
boolean |
checkAndMutate(byte[] row,
byte[] family,
byte[] qualifier,
org.apache.hadoop.hbase.filter.CompareFilter.CompareOp compareOp,
byte[] value,
org.apache.hadoop.hbase.client.RowMutations rm) |
boolean |
checkAndPut(byte[] row,
byte[] family,
byte[] qualifier,
byte[] value,
org.apache.hadoop.hbase.client.Put put) |
boolean |
checkAndPut(byte[] row,
byte[] family,
byte[] qualifier,
org.apache.hadoop.hbase.filter.CompareFilter.CompareOp compareOp,
byte[] value,
org.apache.hadoop.hbase.client.Put put) |
void |
close() |
protected BatchExecutor |
createBatchExecutor()
Getter for the field
batchExecutor. |
void |
delete(org.apache.hadoop.hbase.client.Delete delete) |
void |
delete(List<org.apache.hadoop.hbase.client.Delete> deletes) |
boolean |
exists(org.apache.hadoop.hbase.client.Get get) |
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.TableName |
getName() |
int |
getOperationTimeout() |
int |
getReadRpcTimeout() |
int |
getRpcTimeout() |
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() |
int |
getWriteRpcTimeout() |
static boolean |
hasWhileMatchFilter(org.apache.hadoop.hbase.filter.Filter filter) |
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) |
org.apache.hadoop.hbase.client.Result |
mutateRowResult(org.apache.hadoop.hbase.client.RowMutations rowMutations) |
void |
mutateRowVoid(org.apache.hadoop.hbase.client.RowMutations rowMutations) |
void |
put(List<org.apache.hadoop.hbase.client.Put> puts) |
void |
put(org.apache.hadoop.hbase.client.Put put) |
void |
setOperationTimeout(int i) |
void |
setReadRpcTimeout(int i) |
void |
setRpcTimeout(int i) |
void |
setWriteRpcTimeout(int i) |
String |
toString() |
protected static final Logger LOG
LOGprotected final org.apache.hadoop.hbase.TableName tableName
protected final BigtableHBaseSettings settings
protected final HBaseRequestAdapter hbaseAdapter
protected final DataClientWrapper clientWrapper
protected final AbstractBigtableConnection bigtableConnection
public AbstractBigtableTable(AbstractBigtableConnection bigtableConnection, HBaseRequestAdapter hbaseAdapter)
bigtableConnection - a AbstractBigtableConnection object.hbaseAdapter - a HBaseRequestAdapter object.public org.apache.hadoop.hbase.TableName getName()
getName in interface org.apache.hadoop.hbase.client.Tablepublic final 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 boolean[] existsAll(List<org.apache.hadoop.hbase.client.Get> gets) throws IOException
existsAll 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.TableIOExceptionInterruptedException@Deprecated public Object[] batch(List<? extends org.apache.hadoop.hbase.client.Row> actions) 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.TableIOExceptionInterruptedException@Deprecated public <R> Object[] batchCallback(List<? extends org.apache.hadoop.hbase.client.Row> actions, 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(List<org.apache.hadoop.hbase.client.Get> gets) throws IOException
get in interface org.apache.hadoop.hbase.client.TableIOExceptionpublic 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.ResultScanner getScanner(org.apache.hadoop.hbase.client.Scan scan)
throws IOException
getScanner in interface org.apache.hadoop.hbase.client.TableIOExceptionpublic static boolean hasWhileMatchFilter(org.apache.hadoop.hbase.filter.Filter filter)
public 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 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 checkAndPut(byte[] row,
byte[] family,
byte[] qualifier,
org.apache.hadoop.hbase.filter.CompareFilter.CompareOp compareOp,
byte[] value,
org.apache.hadoop.hbase.client.Put put)
throws IOException
checkAndPut 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 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[] row,
byte[] family,
byte[] qualifier,
org.apache.hadoop.hbase.filter.CompareFilter.CompareOp compareOp,
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.filter.CompareFilter.CompareOp compareOp,
byte[] value,
org.apache.hadoop.hbase.client.RowMutations rm)
throws IOException
checkAndMutate in interface org.apache.hadoop.hbase.client.TableIOExceptionpublic void mutateRowVoid(org.apache.hadoop.hbase.client.RowMutations rowMutations)
throws IOException
IOExceptionpublic org.apache.hadoop.hbase.client.Result mutateRowResult(org.apache.hadoop.hbase.client.RowMutations rowMutations)
throws IOException
IOExceptionpublic 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.TableIOExceptionprotected BatchExecutor createBatchExecutor()
batchExecutor.BatchExecutor object.public void setOperationTimeout(int i)
setOperationTimeout in interface org.apache.hadoop.hbase.client.Tablepublic int getOperationTimeout()
getOperationTimeout in interface org.apache.hadoop.hbase.client.Tablepublic void setRpcTimeout(int i)
setRpcTimeout in interface org.apache.hadoop.hbase.client.Tablepublic int getReadRpcTimeout()
getReadRpcTimeout in interface org.apache.hadoop.hbase.client.Tablepublic void setReadRpcTimeout(int i)
setReadRpcTimeout in interface org.apache.hadoop.hbase.client.Tablepublic int getWriteRpcTimeout()
getWriteRpcTimeout in interface org.apache.hadoop.hbase.client.Tablepublic void setWriteRpcTimeout(int i)
setWriteRpcTimeout in interface org.apache.hadoop.hbase.client.Tablepublic int getRpcTimeout()
getRpcTimeout in interface org.apache.hadoop.hbase.client.Table