@InterfaceAudience.Public public class RemoteHTable extends Object implements Table
Table.CheckAndMutateBuilder| Constructor and Description |
|---|
RemoteHTable(Client client,
org.apache.hadoop.conf.Configuration conf,
byte[] name)
Constructor
|
RemoteHTable(Client client,
org.apache.hadoop.conf.Configuration conf,
String name)
Constructor
|
RemoteHTable(Client client,
String name)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
Result |
append(Append append) |
void |
batch(List<? extends Row> actions,
Object[] results) |
<R> void |
batchCallback(List<? extends Row> actions,
Object[] results,
Batch.Callback<R> callback) |
<R extends Message> |
batchCoprocessorService(Descriptors.MethodDescriptor method,
Message request,
byte[] startKey,
byte[] endKey,
R responsePrototype) |
<R extends Message> |
batchCoprocessorService(Descriptors.MethodDescriptor method,
Message request,
byte[] startKey,
byte[] endKey,
R responsePrototype,
Batch.Callback<R> callback) |
protected CellSetModel |
buildModelFromPut(Put put) |
protected String |
buildMultiRowSpec(byte[][] rows,
int maxVersions) |
protected Result[] |
buildResultFromModel(CellSetModel model) |
protected String |
buildRowSpec(byte[] row,
Map familyMap,
long startTime,
long endTime,
int maxVersions) |
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)
Deprecated.
|
boolean |
checkAndDelete(byte[] row,
byte[] family,
byte[] qualifier,
CompareOperator compareOp,
byte[] value,
Delete delete)
Deprecated.
|
Table.CheckAndMutateBuilder |
checkAndMutate(byte[] row,
byte[] family) |
boolean |
checkAndMutate(byte[] row,
byte[] family,
byte[] qualifier,
CompareFilter.CompareOp compareOp,
byte[] value,
RowMutations rm)
Deprecated.
|
boolean |
checkAndMutate(byte[] row,
byte[] family,
byte[] qualifier,
CompareOperator compareOp,
byte[] value,
RowMutations rm)
Deprecated.
|
boolean |
checkAndPut(byte[] row,
byte[] family,
byte[] qualifier,
byte[] value,
Put put)
Deprecated.
|
boolean |
checkAndPut(byte[] row,
byte[] family,
byte[] qualifier,
CompareFilter.CompareOp compareOp,
byte[] value,
Put put)
Deprecated.
|
boolean |
checkAndPut(byte[] row,
byte[] family,
byte[] qualifier,
CompareOperator compareOp,
byte[] value,
Put put)
Deprecated.
|
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) |
void |
delete(Delete delete) |
void |
delete(List<Delete> deletes) |
boolean |
exists(Get get) |
boolean[] |
exists(List<Get> gets) |
void |
flushCommits() |
Result |
get(Get get) |
Result[] |
get(List<Get> gets) |
org.apache.hadoop.conf.Configuration |
getConfiguration() |
TableDescriptor |
getDescriptor() |
TableName |
getName() |
int |
getOperationTimeout()
Deprecated.
|
long |
getOperationTimeout(TimeUnit unit) |
int |
getReadRpcTimeout()
Deprecated.
|
long |
getReadRpcTimeout(TimeUnit unit) |
int |
getRpcTimeout()
Deprecated.
|
long |
getRpcTimeout(TimeUnit unit) |
ResultScanner |
getScanner(byte[] family) |
ResultScanner |
getScanner(byte[] family,
byte[] qualifier) |
ResultScanner |
getScanner(Scan scan) |
HTableDescriptor |
getTableDescriptor()
Deprecated.
|
byte[] |
getTableName() |
int |
getWriteRpcTimeout()
Deprecated.
|
long |
getWriteRpcTimeout(TimeUnit unit) |
Result |
increment(Increment increment) |
long |
incrementColumnValue(byte[] row,
byte[] family,
byte[] qualifier,
long amount) |
long |
incrementColumnValue(byte[] row,
byte[] family,
byte[] qualifier,
long amount,
Durability durability) |
boolean |
isAutoFlush() |
void |
mutateRow(RowMutations rm) |
void |
put(List<Put> puts) |
void |
put(Put put) |
void |
setOperationTimeout(int operationTimeout)
Deprecated.
|
void |
setReadRpcTimeout(int readRpcTimeout)
Deprecated.
|
void |
setRpcTimeout(int rpcTimeout)
Deprecated.
|
void |
setWriteRpcTimeout(int writeRpcTimeout)
Deprecated.
|
public RemoteHTable(Client client, org.apache.hadoop.conf.Configuration conf, String name)
public RemoteHTable(Client client, org.apache.hadoop.conf.Configuration conf, byte[] name)
protected String buildRowSpec(byte[] row, Map familyMap, long startTime, long endTime, int maxVersions)
protected String buildMultiRowSpec(byte[][] rows, int maxVersions)
protected Result[] buildResultFromModel(CellSetModel model)
protected CellSetModel buildModelFromPut(Put put)
public byte[] getTableName()
public org.apache.hadoop.conf.Configuration getConfiguration()
getConfiguration in interface Table@Deprecated public HTableDescriptor getTableDescriptor() throws IOException
getTableDescriptor in interface TableIOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in interface TableIOExceptionpublic Result get(Get get) throws IOException
get in interface TableIOExceptionpublic Result[] get(List<Get> gets) throws IOException
get in interface TableIOExceptionpublic boolean exists(Get get) throws IOException
exists in interface TableIOExceptionpublic boolean[] exists(List<Get> gets) throws IOException
exists in interface TableIOExceptionpublic 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 void flushCommits()
throws IOException
IOExceptionpublic TableDescriptor getDescriptor() throws IOException
getDescriptor in interface TableIOExceptionpublic 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 boolean isAutoFlush()
@Deprecated public boolean checkAndPut(byte[] row, byte[] family, byte[] qualifier, byte[] value, Put put) throws IOException
checkAndPut in interface TableIOException@Deprecated public boolean checkAndPut(byte[] row, byte[] family, byte[] qualifier, CompareFilter.CompareOp compareOp, byte[] value, Put put) throws IOException
checkAndPut in interface TableIOException@Deprecated public boolean checkAndPut(byte[] row, byte[] family, byte[] qualifier, CompareOperator 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 TableIOException@Deprecated public boolean checkAndDelete(byte[] row, byte[] family, byte[] qualifier, CompareFilter.CompareOp compareOp, byte[] value, Delete delete) throws IOException
checkAndDelete in interface TableIOException@Deprecated public boolean checkAndDelete(byte[] row, byte[] family, byte[] qualifier, CompareOperator compareOp, byte[] value, Delete delete) throws IOException
checkAndDelete in interface TableIOExceptionpublic Table.CheckAndMutateBuilder checkAndMutate(byte[] row, byte[] family)
checkAndMutate in interface Table@Deprecated public boolean checkAndMutate(byte[] row, byte[] family, byte[] qualifier, CompareFilter.CompareOp compareOp, byte[] value, RowMutations rm) throws IOException
checkAndMutate in interface TableIOException@Deprecated public boolean checkAndMutate(byte[] row, byte[] family, byte[] qualifier, CompareOperator compareOp, byte[] value, RowMutations rm) throws IOException
checkAndMutate in interface TableIOExceptionpublic Result increment(Increment increment) throws IOException
increment in interface TableIOExceptionpublic Result append(Append append) throws IOException
append 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 void batch(List<? extends Row> actions, Object[] results) throws IOException
batch in interface TableIOExceptionpublic <R> void batchCallback(List<? extends Row> actions, Object[] results, Batch.Callback<R> callback) throws IOException, InterruptedException
batchCallback in interface TableIOExceptionInterruptedExceptionpublic 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 <R extends Message> Map<byte[],R> batchCoprocessorService(Descriptors.MethodDescriptor method, Message request, byte[] startKey, byte[] endKey, R responsePrototype) throws ServiceException, Throwable
batchCoprocessorService in interface TableServiceExceptionThrowablepublic <R extends Message> void batchCoprocessorService(Descriptors.MethodDescriptor method, Message request, byte[] startKey, byte[] endKey, R responsePrototype, Batch.Callback<R> callback) throws ServiceException, Throwable
batchCoprocessorService in interface TableServiceExceptionThrowable@Deprecated public void setOperationTimeout(int operationTimeout)
setOperationTimeout in interface Table@Deprecated public int getOperationTimeout()
getOperationTimeout in interface Table@Deprecated public void setRpcTimeout(int rpcTimeout)
setRpcTimeout in interface Tablepublic long getReadRpcTimeout(TimeUnit unit)
getReadRpcTimeout in interface Table@Deprecated public int getRpcTimeout()
getRpcTimeout in interface Tablepublic long getRpcTimeout(TimeUnit unit)
getRpcTimeout in interface Table@Deprecated public int getReadRpcTimeout()
getReadRpcTimeout in interface Table@Deprecated public void setReadRpcTimeout(int readRpcTimeout)
setReadRpcTimeout in interface Tablepublic long getWriteRpcTimeout(TimeUnit unit)
getWriteRpcTimeout in interface Table@Deprecated public int getWriteRpcTimeout()
getWriteRpcTimeout in interface Table@Deprecated public void setWriteRpcTimeout(int writeRpcTimeout)
setWriteRpcTimeout in interface Tablepublic long getOperationTimeout(TimeUnit unit)
getOperationTimeout in interface TableCopyright © 2007–2020 The Apache Software Foundation. All rights reserved.