@InterfaceAudience.Public @InterfaceStability.Stable public class RemoteHTable extends Object implements HTableInterface
| 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) |
Object[] |
batch(List<? extends Row> actions) |
void |
batch(List<? extends Row> actions,
Object[] results) |
<R> Object[] |
batchCallback(List<? extends Row> actions,
Batch.Callback<R> callback) |
<R> void |
batchCallback(List<? extends Row> actions,
Object[] results,
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 |
checkAndPut(byte[] row,
byte[] family,
byte[] qualifier,
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) |
void |
delete(Delete delete) |
void |
delete(List<Delete> deletes) |
boolean |
exists(Get get) |
Boolean[] |
exists(List<Get> gets)
exists(List) is really a list of get() calls.
|
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) |
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) |
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 RemoteHTable(Client client, org.apache.hadoop.conf.Configuration conf, String name)
client - conf - name - public RemoteHTable(Client client, org.apache.hadoop.conf.Configuration conf, byte[] name)
client - conf - 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()
getTableName in interface HTableInterfacepublic TableName getName()
getName in interface HTableInterfacepublic org.apache.hadoop.conf.Configuration getConfiguration()
getConfiguration in interface HTableInterfacepublic HTableDescriptor getTableDescriptor() throws IOException
getTableDescriptor in interface HTableInterfaceIOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in interface HTableInterfaceIOExceptionpublic Result get(Get get) throws IOException
get in interface HTableInterfaceIOExceptionpublic Result[] get(List<Get> gets) throws IOException
get in interface HTableInterfaceIOExceptionpublic boolean exists(Get get) throws IOException
exists in interface HTableInterfaceIOExceptionpublic Boolean[] exists(List<Get> gets) throws IOException
exists in interface HTableInterfacegets - list of Get to test for the existenceIOExceptionpublic void put(Put put) throws IOException
put in interface HTableInterfaceIOExceptionpublic void put(List<Put> puts) throws IOException
put in interface HTableInterfaceIOExceptionpublic void delete(Delete delete) throws IOException
delete in interface HTableInterfaceIOExceptionpublic void delete(List<Delete> deletes) throws IOException
delete in interface HTableInterfaceIOExceptionpublic void flushCommits()
throws IOException
flushCommits in interface HTableInterfaceIOExceptionpublic ResultScanner getScanner(Scan scan) throws IOException
getScanner in interface HTableInterfaceIOExceptionpublic ResultScanner getScanner(byte[] family) throws IOException
getScanner in interface HTableInterfaceIOExceptionpublic ResultScanner getScanner(byte[] family, byte[] qualifier) throws IOException
getScanner in interface HTableInterfaceIOExceptionpublic boolean isAutoFlush()
isAutoFlush in interface HTableInterfacepublic Result getRowOrBefore(byte[] row, byte[] family) throws IOException
getRowOrBefore in interface HTableInterfaceIOExceptionpublic boolean checkAndPut(byte[] row,
byte[] family,
byte[] qualifier,
byte[] value,
Put put)
throws IOException
checkAndPut in interface HTableInterfaceIOExceptionpublic boolean checkAndDelete(byte[] row,
byte[] family,
byte[] qualifier,
byte[] value,
Delete delete)
throws IOException
checkAndDelete in interface HTableInterfaceIOExceptionpublic Result increment(Increment increment) throws IOException
increment in interface HTableInterfaceIOExceptionpublic Result append(Append append) throws IOException
append in interface HTableInterfaceIOExceptionpublic long incrementColumnValue(byte[] row,
byte[] family,
byte[] qualifier,
long amount)
throws IOException
incrementColumnValue in interface HTableInterfaceIOExceptionpublic long incrementColumnValue(byte[] row,
byte[] family,
byte[] qualifier,
long amount,
Durability durability)
throws IOException
incrementColumnValue in interface HTableInterfaceIOExceptionpublic void batch(List<? extends Row> actions, Object[] results) throws IOException
batch in interface HTableInterfaceIOExceptionpublic Object[] batch(List<? extends Row> actions) throws IOException
batch in interface HTableInterfaceIOExceptionpublic <R> void batchCallback(List<? extends Row> actions, Object[] results, Batch.Callback<R> callback) throws IOException, InterruptedException
batchCallback in interface HTableInterfaceIOExceptionInterruptedExceptionpublic <R> Object[] batchCallback(List<? extends Row> actions, Batch.Callback<R> callback) throws IOException, InterruptedException
batchCallback in interface HTableInterfaceIOExceptionInterruptedExceptionpublic CoprocessorRpcChannel coprocessorService(byte[] row)
coprocessorService in interface HTableInterfacepublic <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 HTableInterfaceServiceExceptionThrowablepublic <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 HTableInterfaceServiceExceptionThrowablepublic void mutateRow(RowMutations rm) throws IOException
mutateRow in interface HTableInterfaceIOExceptionpublic 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 HTableInterfacepublic void setWriteBufferSize(long writeBufferSize)
throws IOException
setWriteBufferSize in interface HTableInterfaceIOExceptionpublic long incrementColumnValue(byte[] row,
byte[] family,
byte[] qualifier,
long amount,
boolean writeToWAL)
throws IOException
incrementColumnValue in interface HTableInterfaceIOExceptionCopyright © 2014 The Apache Software Foundation. All Rights Reserved.