|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.hadoop.hbase.stargate.client.RemoteHTable
public class RemoteHTable
HTable interface to remote tables accessed via Stargate
Constructor Summary | |
---|---|
RemoteHTable(Client client,
HBaseConfiguration conf,
byte[] name,
String accessToken)
Constructor |
|
RemoteHTable(Client client,
HBaseConfiguration conf,
String name,
String accessToken)
Constructor |
|
RemoteHTable(Client client,
String name)
Constructor |
|
RemoteHTable(Client client,
String name,
String accessToken)
Constructor |
Method Summary | |
---|---|
protected CellSetModel |
buildModelFromPut(Put put)
|
protected Result[] |
buildResultFromModel(CellSetModel model)
|
protected String |
buildRowSpec(byte[] row,
Map familyMap,
long startTime,
long endTime,
int maxVersions)
|
boolean |
checkAndPut(byte[] row,
byte[] family,
byte[] qualifier,
byte[] value,
Put put)
|
void |
close()
|
void |
delete(Delete delete)
|
void |
delete(List<Delete> deletes)
|
boolean |
exists(Get get)
|
void |
flushCommits()
|
Result |
get(Get get)
|
HBaseConfiguration |
getConfiguration()
|
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 |
incrementColumnValue(byte[] row,
byte[] family,
byte[] qualifier,
long amount)
|
long |
incrementColumnValue(byte[] row,
byte[] family,
byte[] qualifier,
long amount,
boolean writeToWAL)
|
boolean |
isAutoFlush()
|
RowLock |
lockRow(byte[] row)
|
void |
put(List<Put> puts)
|
void |
put(Put put)
|
void |
unlockRow(RowLock rl)
|
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, String name, String accessToken)
client
- name
- accessToken
- public RemoteHTable(Client client, HBaseConfiguration conf, String name, String accessToken)
client
- conf
- name
- accessToken
- public RemoteHTable(Client client, HBaseConfiguration conf, byte[] name, String accessToken)
conf
- Method Detail |
---|
protected String buildRowSpec(byte[] row, Map familyMap, long startTime, long endTime, int maxVersions)
protected Result[] buildResultFromModel(CellSetModel model)
protected CellSetModel buildModelFromPut(Put put)
public byte[] getTableName()
public HBaseConfiguration getConfiguration()
public HTableDescriptor getTableDescriptor() throws IOException
IOException
public void close() throws IOException
IOException
public Result get(Get get) throws IOException
IOException
public boolean exists(Get get) throws IOException
IOException
public void put(Put put) throws IOException
IOException
public void put(List<Put> puts) throws IOException
IOException
public void delete(Delete delete) throws IOException
IOException
public void delete(List<Delete> deletes) throws IOException
IOException
public void flushCommits() throws IOException
IOException
public ResultScanner getScanner(Scan scan) throws IOException
IOException
public ResultScanner getScanner(byte[] family) throws IOException
IOException
public ResultScanner getScanner(byte[] family, byte[] qualifier) throws IOException
IOException
public boolean isAutoFlush()
public Result getRowOrBefore(byte[] row, byte[] family) throws IOException
IOException
public RowLock lockRow(byte[] row) throws IOException
IOException
public void unlockRow(RowLock rl) throws IOException
IOException
public boolean checkAndPut(byte[] row, byte[] family, byte[] qualifier, byte[] value, Put put) throws IOException
IOException
public long incrementColumnValue(byte[] row, byte[] family, byte[] qualifier, long amount) throws IOException
IOException
public long incrementColumnValue(byte[] row, byte[] family, byte[] qualifier, long amount, boolean writeToWAL) throws IOException
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |