@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 | 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) |
<R extends org.apache.hadoop.hbase.shaded.com.google.protobuf.Message> |
batchCoprocessorService(org.apache.hadoop.hbase.shaded.com.google.protobuf.Descriptors.MethodDescriptor methodDescriptor,
org.apache.hadoop.hbase.shaded.com.google.protobuf.Message message,
byte[] bytes,
byte[] bytes2,
R r) |
<R extends org.apache.hadoop.hbase.shaded.com.google.protobuf.Message> |
batchCoprocessorService(org.apache.hadoop.hbase.shaded.com.google.protobuf.Descriptors.MethodDescriptor methodDescriptor,
org.apache.hadoop.hbase.shaded.com.google.protobuf.Message message,
byte[] bytes,
byte[] bytes2,
R r,
org.apache.hadoop.hbase.client.coprocessor.Batch.Callback<R> rCallback) |
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() |
org.apache.hadoop.hbase.ipc.CoprocessorRpcChannel |
coprocessorService(byte[] row) |
<T extends org.apache.hadoop.hbase.shaded.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 org.apache.hadoop.hbase.shaded.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) |
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() |
long |
getWriteBufferSize()
Deprecated.
|
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) |
void |
mutateRow(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 |
setWriteBufferSize(long writeBufferSize)
Deprecated.
|
void |
setWriteRpcTimeout(int i) |
String |
toString() |
protected static final Logger LOG
LOG
protected 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.Table
public final org.apache.hadoop.conf.Configuration getConfiguration()
getConfiguration
in interface org.apache.hadoop.hbase.client.Table
public org.apache.hadoop.hbase.HTableDescriptor getTableDescriptor() throws IOException
getTableDescriptor
in interface org.apache.hadoop.hbase.client.Table
IOException
public boolean exists(org.apache.hadoop.hbase.client.Get get) throws IOException
exists
in interface org.apache.hadoop.hbase.client.Table
IOException
public boolean[] existsAll(List<org.apache.hadoop.hbase.client.Get> gets) throws IOException
existsAll
in interface org.apache.hadoop.hbase.client.Table
IOException
public void batch(List<? extends org.apache.hadoop.hbase.client.Row> actions, Object[] results) throws IOException, InterruptedException
batch
in interface org.apache.hadoop.hbase.client.Table
IOException
InterruptedException
@Deprecated public Object[] batch(List<? extends org.apache.hadoop.hbase.client.Row> actions) throws IOException, InterruptedException
batch
in interface org.apache.hadoop.hbase.client.Table
IOException
InterruptedException
public <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.Table
IOException
InterruptedException
@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.Table
IOException
InterruptedException
public 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.Table
IOException
public org.apache.hadoop.hbase.client.Result get(org.apache.hadoop.hbase.client.Get get) throws IOException
get
in interface org.apache.hadoop.hbase.client.Table
IOException
public org.apache.hadoop.hbase.client.ResultScanner getScanner(org.apache.hadoop.hbase.client.Scan scan) throws IOException
getScanner
in interface org.apache.hadoop.hbase.client.Table
IOException
public 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.Table
IOException
public org.apache.hadoop.hbase.client.ResultScanner getScanner(byte[] family, byte[] qualifier) throws IOException
getScanner
in interface org.apache.hadoop.hbase.client.Table
IOException
public void put(org.apache.hadoop.hbase.client.Put put) throws IOException
put
in interface org.apache.hadoop.hbase.client.Table
IOException
public void put(List<org.apache.hadoop.hbase.client.Put> puts) throws IOException
put
in interface org.apache.hadoop.hbase.client.Table
IOException
public 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.Table
IOException
public 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.Table
IOException
public void delete(org.apache.hadoop.hbase.client.Delete delete) throws IOException
delete
in interface org.apache.hadoop.hbase.client.Table
IOException
public void delete(List<org.apache.hadoop.hbase.client.Delete> deletes) throws IOException
delete
in interface org.apache.hadoop.hbase.client.Table
IOException
public 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.Table
IOException
public 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.Table
IOException
public 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.Table
IOException
public void mutateRow(org.apache.hadoop.hbase.client.RowMutations rowMutations) throws IOException
mutateRow
in interface org.apache.hadoop.hbase.client.Table
IOException
public org.apache.hadoop.hbase.client.Result append(org.apache.hadoop.hbase.client.Append append) throws IOException
append
in interface org.apache.hadoop.hbase.client.Table
IOException
public org.apache.hadoop.hbase.client.Result increment(org.apache.hadoop.hbase.client.Increment increment) throws IOException
increment
in interface org.apache.hadoop.hbase.client.Table
IOException
public long incrementColumnValue(byte[] row, byte[] family, byte[] qualifier, long amount) throws IOException
incrementColumnValue
in interface org.apache.hadoop.hbase.client.Table
IOException
public 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.Table
IOException
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in interface org.apache.hadoop.hbase.client.Table
IOException
public org.apache.hadoop.hbase.ipc.CoprocessorRpcChannel coprocessorService(byte[] row)
coprocessorService
in interface org.apache.hadoop.hbase.client.Table
public <T extends org.apache.hadoop.hbase.shaded.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 org.apache.hadoop.hbase.shaded.com.google.protobuf.ServiceException, Throwable
coprocessorService
in interface org.apache.hadoop.hbase.client.Table
org.apache.hadoop.hbase.shaded.com.google.protobuf.ServiceException
Throwable
public <T extends org.apache.hadoop.hbase.shaded.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 org.apache.hadoop.hbase.shaded.com.google.protobuf.ServiceException, Throwable
coprocessorService
in interface org.apache.hadoop.hbase.client.Table
org.apache.hadoop.hbase.shaded.com.google.protobuf.ServiceException
Throwable
@Deprecated public long getWriteBufferSize()
getWriteBufferSize
in interface org.apache.hadoop.hbase.client.Table
@Deprecated public void setWriteBufferSize(long writeBufferSize) throws IOException
setWriteBufferSize
in interface org.apache.hadoop.hbase.client.Table
IOException
public <R extends org.apache.hadoop.hbase.shaded.com.google.protobuf.Message> Map<byte[],R> batchCoprocessorService(org.apache.hadoop.hbase.shaded.com.google.protobuf.Descriptors.MethodDescriptor methodDescriptor, org.apache.hadoop.hbase.shaded.com.google.protobuf.Message message, byte[] bytes, byte[] bytes2, R r) throws org.apache.hadoop.hbase.shaded.com.google.protobuf.ServiceException, Throwable
batchCoprocessorService
in interface org.apache.hadoop.hbase.client.Table
org.apache.hadoop.hbase.shaded.com.google.protobuf.ServiceException
Throwable
public <R extends org.apache.hadoop.hbase.shaded.com.google.protobuf.Message> void batchCoprocessorService(org.apache.hadoop.hbase.shaded.com.google.protobuf.Descriptors.MethodDescriptor methodDescriptor, org.apache.hadoop.hbase.shaded.com.google.protobuf.Message message, byte[] bytes, byte[] bytes2, R r, org.apache.hadoop.hbase.client.coprocessor.Batch.Callback<R> rCallback) throws org.apache.hadoop.hbase.shaded.com.google.protobuf.ServiceException, Throwable
batchCoprocessorService
in interface org.apache.hadoop.hbase.client.Table
org.apache.hadoop.hbase.shaded.com.google.protobuf.ServiceException
Throwable
protected BatchExecutor createBatchExecutor()
batchExecutor
.BatchExecutor
object.public void setOperationTimeout(int i)
setOperationTimeout
in interface org.apache.hadoop.hbase.client.Table
public int getOperationTimeout()
getOperationTimeout
in interface org.apache.hadoop.hbase.client.Table
public void setRpcTimeout(int i)
setRpcTimeout
in interface org.apache.hadoop.hbase.client.Table
public int getReadRpcTimeout()
getReadRpcTimeout
in interface org.apache.hadoop.hbase.client.Table
public void setReadRpcTimeout(int i)
setReadRpcTimeout
in interface org.apache.hadoop.hbase.client.Table
public int getWriteRpcTimeout()
getWriteRpcTimeout
in interface org.apache.hadoop.hbase.client.Table
public void setWriteRpcTimeout(int i)
setWriteRpcTimeout
in interface org.apache.hadoop.hbase.client.Table
public int getRpcTimeout()
getRpcTimeout
in interface org.apache.hadoop.hbase.client.Table