|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.hadoop.hbase.rest.client.RemoteHTable
@InterfaceAudience.Public @InterfaceStability.Stable public class RemoteHTable
HTable interface to remote tables accessed via REST gateway
| Constructor Summary | |
|---|---|
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 |
|
| Method Summary | ||
|---|---|---|
Result |
append(Append append)
|
|
Object[] |
batch(List<? extends Row> actions)
|
|
void |
batch(List<? extends Row> actions,
Object[] results)
|
|
|
batchCallback(List<? extends Row> actions,
Batch.Callback<R> callback)
|
|
|
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)
|
|
|
coprocessorService(Class<T> service,
byte[] startKey,
byte[] endKey,
Batch.Call<T,R> callable)
|
|
|
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)
|
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RemoteHTable(Client client,
String name)
client - name -
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 - | Method Detail |
|---|
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 HTableInterface
public HTableDescriptor getTableDescriptor()
throws IOException
getTableDescriptor in interface HTableInterfaceIOException
public void close()
throws IOException
close in interface Closeableclose in interface HTableInterfaceIOException
public Result get(Get get)
throws IOException
get in interface HTableInterfaceIOException
public Result[] get(List<Get> gets)
throws IOException
get in interface HTableInterfaceIOException
public boolean exists(Get get)
throws IOException
exists in interface HTableInterfaceIOException
public Boolean[] exists(List<Get> gets)
throws IOException
exists in interface HTableInterfacegets - list of Get to test for the existence
IOException
public void put(Put put)
throws IOException
put in interface HTableInterfaceIOException
public void put(List<Put> puts)
throws IOException
put in interface HTableInterfaceIOException
public void delete(Delete delete)
throws IOException
delete in interface HTableInterfaceIOException
public void delete(List<Delete> deletes)
throws IOException
delete in interface HTableInterfaceIOException
public void flushCommits()
throws IOException
flushCommits in interface HTableInterfaceIOException
public ResultScanner getScanner(Scan scan)
throws IOException
getScanner in interface HTableInterfaceIOException
public ResultScanner getScanner(byte[] family)
throws IOException
getScanner in interface HTableInterfaceIOException
public ResultScanner getScanner(byte[] family,
byte[] qualifier)
throws IOException
getScanner in interface HTableInterfaceIOExceptionpublic boolean isAutoFlush()
isAutoFlush in interface HTableInterface
public Result getRowOrBefore(byte[] row,
byte[] family)
throws IOException
getRowOrBefore in interface HTableInterfaceIOException
public boolean checkAndPut(byte[] row,
byte[] family,
byte[] qualifier,
byte[] value,
Put put)
throws IOException
checkAndPut in interface HTableInterfaceIOException
public boolean checkAndDelete(byte[] row,
byte[] family,
byte[] qualifier,
byte[] value,
Delete delete)
throws IOException
checkAndDelete in interface HTableInterfaceIOException
public Result increment(Increment increment)
throws IOException
increment in interface HTableInterfaceIOException
public Result append(Append append)
throws IOException
append in interface HTableInterfaceIOException
public long incrementColumnValue(byte[] row,
byte[] family,
byte[] qualifier,
long amount)
throws IOException
incrementColumnValue in interface HTableInterfaceIOException
public long incrementColumnValue(byte[] row,
byte[] family,
byte[] qualifier,
long amount,
Durability durability)
throws IOException
incrementColumnValue in interface HTableInterfaceIOException
public void batch(List<? extends Row> actions,
Object[] results)
throws IOException
batch in interface HTableInterfaceIOException
public Object[] batch(List<? extends Row> actions)
throws IOException
batch in interface HTableInterfaceIOException
public <R> void batchCallback(List<? extends Row> actions,
Object[] results,
Batch.Callback<R> callback)
throws IOException,
InterruptedException
batchCallback in interface HTableInterfaceIOException
InterruptedException
public <R> Object[] batchCallback(List<? extends Row> actions,
Batch.Callback<R> callback)
throws IOException,
InterruptedException
batchCallback in interface HTableInterfaceIOException
InterruptedExceptionpublic CoprocessorRpcChannel coprocessorService(byte[] row)
coprocessorService in interface HTableInterface
public <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 in interface HTableInterfacecom.google.protobuf.ServiceException
Throwable
public <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 in interface HTableInterfacecom.google.protobuf.ServiceException
Throwable
public void mutateRow(RowMutations rm)
throws IOException
mutateRow in interface HTableInterfaceIOExceptionpublic void setAutoFlush(boolean autoFlush)
setAutoFlush in interface HTableInterface
public void setAutoFlush(boolean autoFlush,
boolean clearBufferOnFail)
setAutoFlush in interface HTableInterfacepublic void setAutoFlushTo(boolean autoFlush)
setAutoFlushTo in interface HTableInterfacepublic long getWriteBufferSize()
getWriteBufferSize in interface HTableInterface
public void setWriteBufferSize(long writeBufferSize)
throws IOException
setWriteBufferSize in interface HTableInterfaceIOException
public long incrementColumnValue(byte[] row,
byte[] family,
byte[] qualifier,
long amount,
boolean writeToWAL)
throws IOException
incrementColumnValue in interface HTableInterfaceIOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||