public class HTableWrapper extends Object implements HTableInterface
| Modifier and Type | Method and Description |
|---|---|
Result |
append(Append append) |
Object[] |
batch(List<? extends Row> actions)
Deprecated.
If any exception is thrown by one of the actions, there is no way to
retrieve the partially executed results. Use
batch(List, Object[]) instead. |
void |
batch(List<? extends Row> actions,
Object[] results) |
<R> Object[] |
batchCallback(List<? extends Row> actions,
Batch.Callback<R> callback)
Deprecated.
If any exception is thrown by one of the actions, there is no way to
retrieve the partially executed results. Use
batchCallback(List, Object[], org.apache.hadoop.hbase.client.coprocessor.Batch.Callback)
instead. |
<R> void |
batchCallback(List<? extends Row> actions,
Object[] results,
Batch.Callback<R> callback) |
<R extends Message> |
batchCoprocessorService(Descriptors.MethodDescriptor methodDescriptor,
Message request,
byte[] startKey,
byte[] endKey,
R responsePrototype) |
<R extends Message> |
batchCoprocessorService(Descriptors.MethodDescriptor methodDescriptor,
Message request,
byte[] startKey,
byte[] endKey,
R responsePrototype,
Batch.Callback<R> callback) |
boolean |
checkAndDelete(byte[] row,
byte[] family,
byte[] qualifier,
byte[] value,
Delete delete) |
boolean |
checkAndDelete(byte[] row,
byte[] family,
byte[] qualifier,
CompareFilter.CompareOp compareOp,
byte[] value,
Delete delete) |
boolean |
checkAndMutate(byte[] row,
byte[] family,
byte[] qualifier,
CompareFilter.CompareOp compareOp,
byte[] value,
RowMutations rm) |
boolean |
checkAndPut(byte[] row,
byte[] family,
byte[] qualifier,
byte[] value,
Put put) |
boolean |
checkAndPut(byte[] row,
byte[] family,
byte[] qualifier,
CompareFilter.CompareOp compareOp,
byte[] value,
Put put) |
void |
close() |
CoprocessorRpcChannel |
coprocessorService(byte[] row) |
<T extends Service,R> |
coprocessorService(Class<T> service,
byte[] startKey,
byte[] endKey,
Batch.Call<T,R> callable) |
<T extends Service,R> |
coprocessorService(Class<T> service,
byte[] startKey,
byte[] endKey,
Batch.Call<T,R> callable,
Batch.Callback<R> callback) |
static HTableInterface |
createWrapper(List<HTableInterface> openTables,
TableName tableName,
CoprocessorHost.Environment env,
ExecutorService pool) |
void |
delete(Delete delete) |
void |
delete(List<Delete> deletes) |
boolean |
exists(Get get) |
Boolean[] |
exists(List<Get> gets)
Deprecated.
|
boolean[] |
existsAll(List<Get> gets) |
void |
flushCommits() |
Result |
get(Get get) |
Result[] |
get(List<Get> gets) |
org.apache.hadoop.conf.Configuration |
getConfiguration() |
TableName |
getName() |
Result |
getRowOrBefore(byte[] row,
byte[] family)
Deprecated.
|
ResultScanner |
getScanner(byte[] family) |
ResultScanner |
getScanner(byte[] family,
byte[] qualifier) |
ResultScanner |
getScanner(Scan scan) |
HTableDescriptor |
getTableDescriptor() |
byte[] |
getTableName() |
long |
getWriteBufferSize() |
Result |
increment(Increment increment) |
long |
incrementColumnValue(byte[] row,
byte[] family,
byte[] qualifier,
long amount) |
long |
incrementColumnValue(byte[] row,
byte[] family,
byte[] qualifier,
long amount,
boolean writeToWAL) |
long |
incrementColumnValue(byte[] row,
byte[] family,
byte[] qualifier,
long amount,
Durability durability) |
void |
internalClose() |
boolean |
isAutoFlush() |
void |
mutateRow(RowMutations rm) |
void |
put(List<Put> puts) |
void |
put(Put put) |
void |
setAutoFlush(boolean autoFlush) |
void |
setAutoFlush(boolean autoFlush,
boolean clearBufferOnFail) |
void |
setAutoFlushTo(boolean autoFlush) |
void |
setWriteBufferSize(long writeBufferSize) |
public static HTableInterface createWrapper(List<HTableInterface> openTables, TableName tableName, CoprocessorHost.Environment env, ExecutorService pool) throws IOException
openTables - External list of tables used for tracking wrappers.IOExceptionpublic void internalClose()
throws IOException
IOExceptionpublic org.apache.hadoop.conf.Configuration getConfiguration()
getConfiguration in interface Tablepublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in interface TableIOException@Deprecated public Result getRowOrBefore(byte[] row, byte[] family) throws IOException
getRowOrBefore in interface HTableInterfaceIOExceptionpublic Result get(Get get) throws IOException
get in interface TableIOExceptionpublic boolean exists(Get get) throws IOException
exists in interface TableIOExceptionpublic boolean[] existsAll(List<Get> gets) throws IOException
existsAll in interface TableIOException@Deprecated public Boolean[] exists(List<Get> gets) throws IOException
exists in interface HTableInterfaceIOExceptionpublic void put(Put put) throws IOException
put in interface TableIOExceptionpublic void put(List<Put> puts) throws IOException
put in interface TableIOExceptionpublic void delete(Delete delete) throws IOException
delete in interface TableIOExceptionpublic void delete(List<Delete> deletes) throws IOException
delete in interface TableIOExceptionpublic boolean checkAndPut(byte[] row,
byte[] family,
byte[] qualifier,
byte[] value,
Put put)
throws IOException
checkAndPut in interface TableIOExceptionpublic boolean checkAndPut(byte[] row,
byte[] family,
byte[] qualifier,
CompareFilter.CompareOp compareOp,
byte[] value,
Put put)
throws IOException
checkAndPut in interface TableIOExceptionpublic boolean checkAndDelete(byte[] row,
byte[] family,
byte[] qualifier,
byte[] value,
Delete delete)
throws IOException
checkAndDelete in interface TableIOExceptionpublic boolean checkAndDelete(byte[] row,
byte[] family,
byte[] qualifier,
CompareFilter.CompareOp compareOp,
byte[] value,
Delete delete)
throws IOException
checkAndDelete in interface TableIOExceptionpublic long incrementColumnValue(byte[] row,
byte[] family,
byte[] qualifier,
long amount)
throws IOException
incrementColumnValue in interface TableIOExceptionpublic long incrementColumnValue(byte[] row,
byte[] family,
byte[] qualifier,
long amount,
Durability durability)
throws IOException
incrementColumnValue in interface TableIOExceptionpublic Result append(Append append) throws IOException
append in interface TableIOExceptionpublic Result increment(Increment increment) throws IOException
increment in interface TableIOExceptionpublic void flushCommits()
throws IOException
flushCommits in interface HTableInterfaceIOExceptionpublic boolean isAutoFlush()
isAutoFlush in interface HTableInterfacepublic ResultScanner getScanner(Scan scan) throws IOException
getScanner in interface TableIOExceptionpublic ResultScanner getScanner(byte[] family) throws IOException
getScanner in interface TableIOExceptionpublic ResultScanner getScanner(byte[] family, byte[] qualifier) throws IOException
getScanner in interface TableIOExceptionpublic HTableDescriptor getTableDescriptor() throws IOException
getTableDescriptor in interface TableIOExceptionpublic byte[] getTableName()
getTableName in interface HTableInterfacepublic void batch(List<? extends Row> actions, Object[] results) throws IOException, InterruptedException
batch in interface TableIOExceptionInterruptedExceptionpublic Object[] batch(List<? extends Row> actions) throws IOException, InterruptedException
batch(List, Object[]) instead.batch in interface TableIOExceptionInterruptedExceptionpublic <R> void batchCallback(List<? extends Row> actions, Object[] results, Batch.Callback<R> callback) throws IOException, InterruptedException
batchCallback in interface TableIOExceptionInterruptedExceptionpublic <R> Object[] batchCallback(List<? extends Row> actions, Batch.Callback<R> callback) throws IOException, InterruptedException
batchCallback(List, Object[], org.apache.hadoop.hbase.client.coprocessor.Batch.Callback)
instead.batchCallback in interface TableIOExceptionInterruptedExceptionpublic Result[] get(List<Get> gets) throws IOException
get in interface TableIOExceptionpublic CoprocessorRpcChannel coprocessorService(byte[] row)
coprocessorService in interface Tablepublic <T extends Service,R> Map<byte[],R> coprocessorService(Class<T> service, byte[] startKey, byte[] endKey, Batch.Call<T,R> callable) throws ServiceException, Throwable
coprocessorService in interface TableServiceExceptionThrowablepublic <T extends Service,R> void coprocessorService(Class<T> service, byte[] startKey, byte[] endKey, Batch.Call<T,R> callable, Batch.Callback<R> callback) throws ServiceException, Throwable
coprocessorService in interface TableServiceExceptionThrowablepublic void mutateRow(RowMutations rm) throws IOException
mutateRow in interface TableIOExceptionpublic void setAutoFlush(boolean autoFlush)
setAutoFlush in interface HTableInterfacepublic void setAutoFlush(boolean autoFlush,
boolean clearBufferOnFail)
setAutoFlush in interface HTableInterfacepublic void setAutoFlushTo(boolean autoFlush)
setAutoFlushTo in interface HTableInterfacepublic long getWriteBufferSize()
getWriteBufferSize in interface HTableInterfacegetWriteBufferSize in interface Tablepublic void setWriteBufferSize(long writeBufferSize)
throws IOException
setWriteBufferSize in interface HTableInterfacesetWriteBufferSize in interface TableIOExceptionpublic long incrementColumnValue(byte[] row,
byte[] family,
byte[] qualifier,
long amount,
boolean writeToWAL)
throws IOException
incrementColumnValue in interface HTableInterfaceIOExceptionpublic <R extends Message> Map<byte[],R> batchCoprocessorService(Descriptors.MethodDescriptor methodDescriptor, Message request, byte[] startKey, byte[] endKey, R responsePrototype) throws ServiceException, Throwable
batchCoprocessorService in interface TableServiceExceptionThrowablepublic <R extends Message> void batchCoprocessorService(Descriptors.MethodDescriptor methodDescriptor, Message request, byte[] startKey, byte[] endKey, R responsePrototype, Batch.Callback<R> callback) throws ServiceException, Throwable
batchCoprocessorService in interface TableServiceExceptionThrowablepublic boolean checkAndMutate(byte[] row,
byte[] family,
byte[] qualifier,
CompareFilter.CompareOp compareOp,
byte[] value,
RowMutations rm)
throws IOException
checkAndMutate in interface TableIOExceptionCopyright © 2015 The Apache Software Foundation. All Rights Reserved.