public class HTableWrapper extends Object implements HTableInterface
| 限定符和类型 | 方法和说明 |
|---|---|
Result |
append(Append append) |
Object[] |
batch(List<? extends Row> actions)
已过时。
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)
已过时。
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 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,
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 com.google.protobuf.Service,R> |
coprocessorService(Class<T> service,
byte[] startKey,
byte[] endKey,
Batch.Call<T,R> callable) |
<T extends com.google.protobuf.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)
已过时。
|
boolean[] |
existsAll(List<Get> gets) |
void |
flushCommits() |
Result |
get(Get get) |
Result[] |
get(List<Get> gets) |
org.apache.hadoop.conf.Configuration |
getConfiguration() |
TableName |
getName() |
int |
getOperationTimeout() |
int |
getReadRpcTimeout() |
Result |
getRowOrBefore(byte[] row,
byte[] family)
已过时。
|
int |
getRpcTimeout()
已过时。
|
ResultScanner |
getScanner(byte[] family) |
ResultScanner |
getScanner(byte[] family,
byte[] qualifier) |
ResultScanner |
getScanner(Scan scan) |
HTableDescriptor |
getTableDescriptor() |
byte[] |
getTableName() |
long |
getWriteBufferSize() |
int |
getWriteRpcTimeout() |
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 |
setOperationTimeout(int operationTimeout) |
void |
setReadRpcTimeout(int readRpcTimeout) |
void |
setRpcTimeout(int rpcTimeout)
已过时。
|
void |
setWriteBufferSize(long writeBufferSize) |
void |
setWriteRpcTimeout(int writeRpcTimeout) |
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 在接口中 Tablepublic void close()
throws IOException
close 在接口中 Closeableclose 在接口中 AutoCloseableclose 在接口中 TableIOException@Deprecated public Result getRowOrBefore(byte[] row, byte[] family) throws IOException
getRowOrBefore 在接口中 HTableInterfaceIOExceptionpublic Result get(Get get) throws IOException
get 在接口中 TableIOExceptionpublic boolean exists(Get get) throws IOException
exists 在接口中 TableIOExceptionpublic boolean[] existsAll(List<Get> gets) throws IOException
existsAll 在接口中 TableIOException@Deprecated public Boolean[] exists(List<Get> gets) throws IOException
exists 在接口中 HTableInterfaceIOExceptionpublic void put(Put put) throws IOException
put 在接口中 TableIOExceptionpublic void put(List<Put> puts) throws IOException
put 在接口中 TableIOExceptionpublic void delete(Delete delete) throws IOException
delete 在接口中 TableIOExceptionpublic void delete(List<Delete> deletes) throws IOException
delete 在接口中 TableIOExceptionpublic boolean checkAndPut(byte[] row,
byte[] family,
byte[] qualifier,
byte[] value,
Put put)
throws IOException
checkAndPut 在接口中 TableIOExceptionpublic boolean checkAndPut(byte[] row,
byte[] family,
byte[] qualifier,
CompareFilter.CompareOp compareOp,
byte[] value,
Put put)
throws IOException
checkAndPut 在接口中 TableIOExceptionpublic boolean checkAndDelete(byte[] row,
byte[] family,
byte[] qualifier,
byte[] value,
Delete delete)
throws IOException
checkAndDelete 在接口中 TableIOExceptionpublic boolean checkAndDelete(byte[] row,
byte[] family,
byte[] qualifier,
CompareFilter.CompareOp compareOp,
byte[] value,
Delete delete)
throws IOException
checkAndDelete 在接口中 TableIOExceptionpublic long incrementColumnValue(byte[] row,
byte[] family,
byte[] qualifier,
long amount)
throws IOException
incrementColumnValue 在接口中 TableIOExceptionpublic long incrementColumnValue(byte[] row,
byte[] family,
byte[] qualifier,
long amount,
Durability durability)
throws IOException
incrementColumnValue 在接口中 TableIOExceptionpublic Result append(Append append) throws IOException
append 在接口中 TableIOExceptionpublic Result increment(Increment increment) throws IOException
increment 在接口中 TableIOExceptionpublic void flushCommits()
throws IOException
flushCommits 在接口中 HTableInterfaceIOExceptionpublic boolean isAutoFlush()
isAutoFlush 在接口中 HTableInterfacepublic ResultScanner getScanner(Scan scan) throws IOException
getScanner 在接口中 TableIOExceptionpublic ResultScanner getScanner(byte[] family) throws IOException
getScanner 在接口中 TableIOExceptionpublic ResultScanner getScanner(byte[] family, byte[] qualifier) throws IOException
getScanner 在接口中 TableIOExceptionpublic HTableDescriptor getTableDescriptor() throws IOException
getTableDescriptor 在接口中 TableIOExceptionpublic byte[] getTableName()
getTableName 在接口中 HTableInterfacepublic void batch(List<? extends Row> actions, Object[] results) throws IOException, InterruptedException
batch 在接口中 TableIOExceptionInterruptedExceptionpublic Object[] batch(List<? extends Row> actions) throws IOException, InterruptedException
batch(List, Object[]) instead.batch 在接口中 TableIOExceptionInterruptedExceptionpublic <R> void batchCallback(List<? extends Row> actions, Object[] results, Batch.Callback<R> callback) throws IOException, InterruptedException
batchCallback 在接口中 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 在接口中 TableIOExceptionInterruptedExceptionpublic Result[] get(List<Get> gets) throws IOException
get 在接口中 TableIOExceptionpublic CoprocessorRpcChannel coprocessorService(byte[] row)
coprocessorService 在接口中 Tablepublic <T extends com.google.protobuf.Service,R> Map<byte[],R> coprocessorService(Class<T> service, byte[] startKey, byte[] endKey, Batch.Call<T,R> callable) throws com.google.protobuf.ServiceException, Throwable
coprocessorService 在接口中 Tablecom.google.protobuf.ServiceExceptionThrowablepublic <T extends com.google.protobuf.Service,R> void coprocessorService(Class<T> service, byte[] startKey, byte[] endKey, Batch.Call<T,R> callable, Batch.Callback<R> callback) throws com.google.protobuf.ServiceException, Throwable
coprocessorService 在接口中 Tablecom.google.protobuf.ServiceExceptionThrowablepublic void mutateRow(RowMutations rm) throws IOException
mutateRow 在接口中 TableIOExceptionpublic void setAutoFlush(boolean autoFlush)
setAutoFlush 在接口中 HTableInterfacepublic void setAutoFlush(boolean autoFlush,
boolean clearBufferOnFail)
setAutoFlush 在接口中 HTableInterfacepublic void setAutoFlushTo(boolean autoFlush)
setAutoFlushTo 在接口中 HTableInterfacepublic long getWriteBufferSize()
getWriteBufferSize 在接口中 HTableInterfacegetWriteBufferSize 在接口中 Tablepublic void setWriteBufferSize(long writeBufferSize)
throws IOException
setWriteBufferSize 在接口中 HTableInterfacesetWriteBufferSize 在接口中 TableIOExceptionpublic long incrementColumnValue(byte[] row,
byte[] family,
byte[] qualifier,
long amount,
boolean writeToWAL)
throws IOException
incrementColumnValue 在接口中 HTableInterfaceIOExceptionpublic <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 在接口中 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,
Batch.Callback<R> callback)
throws com.google.protobuf.ServiceException,
Throwable
batchCoprocessorService 在接口中 Tablecom.google.protobuf.ServiceExceptionThrowablepublic boolean checkAndMutate(byte[] row,
byte[] family,
byte[] qualifier,
CompareFilter.CompareOp compareOp,
byte[] value,
RowMutations rm)
throws IOException
checkAndMutate 在接口中 TableIOExceptionpublic void setOperationTimeout(int operationTimeout)
setOperationTimeout 在接口中 Tablepublic int getOperationTimeout()
getOperationTimeout 在接口中 Table@Deprecated public int getRpcTimeout()
getRpcTimeout 在接口中 Table@Deprecated public void setRpcTimeout(int rpcTimeout)
setRpcTimeout 在接口中 Tablepublic void setWriteRpcTimeout(int writeRpcTimeout)
setWriteRpcTimeout 在接口中 Tablepublic void setReadRpcTimeout(int readRpcTimeout)
setReadRpcTimeout 在接口中 Tablepublic int getWriteRpcTimeout()
getWriteRpcTimeout 在接口中 Tablepublic int getReadRpcTimeout()
getReadRpcTimeout 在接口中 TableCopyright © 2007–2021 The Apache Software Foundation. All rights reserved.