|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.thrift.TServiceClient
org.apache.hadoop.hbase.thrift2.generated.THBaseService.Client
public static class THBaseService.Client
| Nested Class Summary | |
|---|---|
static class |
THBaseService.Client.Factory
|
| Field Summary |
|---|
| Fields inherited from class org.apache.thrift.TServiceClient |
|---|
iprot_, oprot_, seqid_ |
| Constructor Summary | |
|---|---|
THBaseService.Client(org.apache.thrift.protocol.TProtocol prot)
|
|
THBaseService.Client(org.apache.thrift.protocol.TProtocol iprot,
org.apache.thrift.protocol.TProtocol oprot)
|
|
| Method Summary | |
|---|---|
boolean |
checkAndDelete(ByteBuffer table,
ByteBuffer row,
ByteBuffer family,
ByteBuffer qualifier,
ByteBuffer value,
TDelete deleteSingle)
Atomically checks if a row/family/qualifier value matches the expected value. |
boolean |
checkAndPut(ByteBuffer table,
ByteBuffer row,
ByteBuffer family,
ByteBuffer qualifier,
ByteBuffer value,
TPut put)
Atomically checks if a row/family/qualifier value matches the expected value. |
void |
closeScanner(int scannerId)
Closes the scanner. |
List<TDelete> |
deleteMultiple(ByteBuffer table,
List<TDelete> deletes)
Bulk commit a List of TDeletes to the table. |
void |
deleteSingle(ByteBuffer table,
TDelete deleteSingle)
Deletes as specified by the TDelete. |
boolean |
exists(ByteBuffer table,
TGet get)
Test for the existence of columns in the table, as specified in the TGet. |
TResult |
get(ByteBuffer table,
TGet get)
Method for getting data from a row. |
List<TResult> |
getMultiple(ByteBuffer table,
List<TGet> gets)
Method for getting multiple rows. |
List<TResult> |
getScannerResults(ByteBuffer table,
TScan scan,
int numRows)
Get results for the provided TScan object. |
List<TResult> |
getScannerRows(int scannerId,
int numRows)
Grabs multiple rows from a Scanner. |
TResult |
increment(ByteBuffer table,
TIncrement increment)
|
void |
mutateRow(ByteBuffer table,
TRowMutations rowMutations)
mutateRow performs multiple mutations atomically on a single row. |
int |
openScanner(ByteBuffer table,
TScan scan)
Get a Scanner for the provided TScan object. |
void |
put(ByteBuffer table,
TPut put)
Commit a TPut to a table. |
void |
putMultiple(ByteBuffer table,
List<TPut> puts)
Commit a List of Puts to the table. |
boolean |
recv_checkAndDelete()
|
boolean |
recv_checkAndPut()
|
void |
recv_closeScanner()
|
List<TDelete> |
recv_deleteMultiple()
|
void |
recv_deleteSingle()
|
boolean |
recv_exists()
|
TResult |
recv_get()
|
List<TResult> |
recv_getMultiple()
|
List<TResult> |
recv_getScannerResults()
|
List<TResult> |
recv_getScannerRows()
|
TResult |
recv_increment()
|
void |
recv_mutateRow()
|
int |
recv_openScanner()
|
void |
recv_put()
|
void |
recv_putMultiple()
|
void |
send_checkAndDelete(ByteBuffer table,
ByteBuffer row,
ByteBuffer family,
ByteBuffer qualifier,
ByteBuffer value,
TDelete deleteSingle)
|
void |
send_checkAndPut(ByteBuffer table,
ByteBuffer row,
ByteBuffer family,
ByteBuffer qualifier,
ByteBuffer value,
TPut put)
|
void |
send_closeScanner(int scannerId)
|
void |
send_deleteMultiple(ByteBuffer table,
List<TDelete> deletes)
|
void |
send_deleteSingle(ByteBuffer table,
TDelete deleteSingle)
|
void |
send_exists(ByteBuffer table,
TGet get)
|
void |
send_get(ByteBuffer table,
TGet get)
|
void |
send_getMultiple(ByteBuffer table,
List<TGet> gets)
|
void |
send_getScannerResults(ByteBuffer table,
TScan scan,
int numRows)
|
void |
send_getScannerRows(int scannerId,
int numRows)
|
void |
send_increment(ByteBuffer table,
TIncrement increment)
|
void |
send_mutateRow(ByteBuffer table,
TRowMutations rowMutations)
|
void |
send_openScanner(ByteBuffer table,
TScan scan)
|
void |
send_put(ByteBuffer table,
TPut put)
|
void |
send_putMultiple(ByteBuffer table,
List<TPut> puts)
|
| Methods inherited from class org.apache.thrift.TServiceClient |
|---|
getInputProtocol, getOutputProtocol, receiveBase, sendBase |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public THBaseService.Client(org.apache.thrift.protocol.TProtocol prot)
public THBaseService.Client(org.apache.thrift.protocol.TProtocol iprot,
org.apache.thrift.protocol.TProtocol oprot)
| Method Detail |
|---|
public boolean exists(ByteBuffer table,
TGet get)
throws TIOError,
org.apache.thrift.TException
THBaseService.Iface
exists in interface THBaseService.Ifacetable - the table to check onget - the TGet to check for
TIOError
org.apache.thrift.TException
public void send_exists(ByteBuffer table,
TGet get)
throws org.apache.thrift.TException
org.apache.thrift.TException
public boolean recv_exists()
throws TIOError,
org.apache.thrift.TException
TIOError
org.apache.thrift.TException
public TResult get(ByteBuffer table,
TGet get)
throws TIOError,
org.apache.thrift.TException
THBaseService.Iface
get in interface THBaseService.Ifacetable - the table to get fromget - the TGet to fetch
TIOError
org.apache.thrift.TException
public void send_get(ByteBuffer table,
TGet get)
throws org.apache.thrift.TException
org.apache.thrift.TException
public TResult recv_get()
throws TIOError,
org.apache.thrift.TException
TIOError
org.apache.thrift.TException
public List<TResult> getMultiple(ByteBuffer table,
List<TGet> gets)
throws TIOError,
org.apache.thrift.TException
THBaseService.Iface
getMultiple in interface THBaseService.Ifacetable - the table to get fromgets - a list of TGets to fetch, the Result list
will have the Results at corresponding positions
or null if there was an error
TIOError
org.apache.thrift.TException
public void send_getMultiple(ByteBuffer table,
List<TGet> gets)
throws org.apache.thrift.TException
org.apache.thrift.TException
public List<TResult> recv_getMultiple()
throws TIOError,
org.apache.thrift.TException
TIOError
org.apache.thrift.TException
public void put(ByteBuffer table,
TPut put)
throws TIOError,
org.apache.thrift.TException
THBaseService.Iface
put in interface THBaseService.Ifacetable - the table to put data input - the TPut to put
TIOError
org.apache.thrift.TException
public void send_put(ByteBuffer table,
TPut put)
throws org.apache.thrift.TException
org.apache.thrift.TException
public void recv_put()
throws TIOError,
org.apache.thrift.TException
TIOError
org.apache.thrift.TException
public boolean checkAndPut(ByteBuffer table,
ByteBuffer row,
ByteBuffer family,
ByteBuffer qualifier,
ByteBuffer value,
TPut put)
throws TIOError,
org.apache.thrift.TException
THBaseService.Iface
checkAndPut in interface THBaseService.Ifacetable - to check in and put torow - row to checkfamily - column family to checkqualifier - column qualifier to checkvalue - the expected value, if not provided the
check is for the non-existence of the
column in questionput - the TPut to put if the check succeeds
TIOError
org.apache.thrift.TException
public void send_checkAndPut(ByteBuffer table,
ByteBuffer row,
ByteBuffer family,
ByteBuffer qualifier,
ByteBuffer value,
TPut put)
throws org.apache.thrift.TException
org.apache.thrift.TException
public boolean recv_checkAndPut()
throws TIOError,
org.apache.thrift.TException
TIOError
org.apache.thrift.TException
public void putMultiple(ByteBuffer table,
List<TPut> puts)
throws TIOError,
org.apache.thrift.TException
THBaseService.Iface
putMultiple in interface THBaseService.Ifacetable - the table to put data inputs - a list of TPuts to commit
TIOError
org.apache.thrift.TException
public void send_putMultiple(ByteBuffer table,
List<TPut> puts)
throws org.apache.thrift.TException
org.apache.thrift.TException
public void recv_putMultiple()
throws TIOError,
org.apache.thrift.TException
TIOError
org.apache.thrift.TException
public void deleteSingle(ByteBuffer table,
TDelete deleteSingle)
throws TIOError,
org.apache.thrift.TException
THBaseService.Iface
deleteSingle in interface THBaseService.Ifacetable - the table to delete fromdeleteSingle - the TDelete to delete
TIOError
org.apache.thrift.TException
public void send_deleteSingle(ByteBuffer table,
TDelete deleteSingle)
throws org.apache.thrift.TException
org.apache.thrift.TException
public void recv_deleteSingle()
throws TIOError,
org.apache.thrift.TException
TIOError
org.apache.thrift.TException
public List<TDelete> deleteMultiple(ByteBuffer table,
List<TDelete> deletes)
throws TIOError,
org.apache.thrift.TException
THBaseService.Iface
deleteMultiple in interface THBaseService.Ifacetable - the table to delete fromdeletes - list of TDeletes to delete
TIOError
org.apache.thrift.TException
public void send_deleteMultiple(ByteBuffer table,
List<TDelete> deletes)
throws org.apache.thrift.TException
org.apache.thrift.TException
public List<TDelete> recv_deleteMultiple()
throws TIOError,
org.apache.thrift.TException
TIOError
org.apache.thrift.TException
public boolean checkAndDelete(ByteBuffer table,
ByteBuffer row,
ByteBuffer family,
ByteBuffer qualifier,
ByteBuffer value,
TDelete deleteSingle)
throws TIOError,
org.apache.thrift.TException
THBaseService.Iface
checkAndDelete in interface THBaseService.Ifacetable - to check in and delete fromrow - row to checkfamily - column family to checkqualifier - column qualifier to checkvalue - the expected value, if not provided the
check is for the non-existence of the
column in questiondeleteSingle - the TDelete to execute if the check succeeds
TIOError
org.apache.thrift.TException
public void send_checkAndDelete(ByteBuffer table,
ByteBuffer row,
ByteBuffer family,
ByteBuffer qualifier,
ByteBuffer value,
TDelete deleteSingle)
throws org.apache.thrift.TException
org.apache.thrift.TException
public boolean recv_checkAndDelete()
throws TIOError,
org.apache.thrift.TException
TIOError
org.apache.thrift.TException
public TResult increment(ByteBuffer table,
TIncrement increment)
throws TIOError,
org.apache.thrift.TException
increment in interface THBaseService.IfaceTIOError
org.apache.thrift.TException
public void send_increment(ByteBuffer table,
TIncrement increment)
throws org.apache.thrift.TException
org.apache.thrift.TException
public TResult recv_increment()
throws TIOError,
org.apache.thrift.TException
TIOError
org.apache.thrift.TException
public int openScanner(ByteBuffer table,
TScan scan)
throws TIOError,
org.apache.thrift.TException
THBaseService.Iface
openScanner in interface THBaseService.Ifacetable - the table to get the Scanner forscan - the scan object to get a Scanner for
TIOError
org.apache.thrift.TException
public void send_openScanner(ByteBuffer table,
TScan scan)
throws org.apache.thrift.TException
org.apache.thrift.TException
public int recv_openScanner()
throws TIOError,
org.apache.thrift.TException
TIOError
org.apache.thrift.TException
public List<TResult> getScannerRows(int scannerId,
int numRows)
throws TIOError,
TIllegalArgument,
org.apache.thrift.TException
THBaseService.Iface
getScannerRows in interface THBaseService.IfacescannerId - the Id of the Scanner to return rows from. This is an Id returned from the openScanner function.numRows - number of rows to return
TIOError
TIllegalArgument
org.apache.thrift.TException
public void send_getScannerRows(int scannerId,
int numRows)
throws org.apache.thrift.TException
org.apache.thrift.TException
public List<TResult> recv_getScannerRows()
throws TIOError,
TIllegalArgument,
org.apache.thrift.TException
TIOError
TIllegalArgument
org.apache.thrift.TException
public void closeScanner(int scannerId)
throws TIOError,
TIllegalArgument,
org.apache.thrift.TException
THBaseService.Iface
closeScanner in interface THBaseService.IfacescannerId - the Id of the Scanner to close *
TIOError
TIllegalArgument
org.apache.thrift.TException
public void send_closeScanner(int scannerId)
throws org.apache.thrift.TException
org.apache.thrift.TException
public void recv_closeScanner()
throws TIOError,
TIllegalArgument,
org.apache.thrift.TException
TIOError
TIllegalArgument
org.apache.thrift.TException
public void mutateRow(ByteBuffer table,
TRowMutations rowMutations)
throws TIOError,
org.apache.thrift.TException
THBaseService.Iface
mutateRow in interface THBaseService.Ifacetable - table to apply the mutationsrowMutations - mutations to apply
TIOError
org.apache.thrift.TException
public void send_mutateRow(ByteBuffer table,
TRowMutations rowMutations)
throws org.apache.thrift.TException
org.apache.thrift.TException
public void recv_mutateRow()
throws TIOError,
org.apache.thrift.TException
TIOError
org.apache.thrift.TException
public List<TResult> getScannerResults(ByteBuffer table,
TScan scan,
int numRows)
throws TIOError,
org.apache.thrift.TException
THBaseService.Iface
getScannerResults in interface THBaseService.Ifacetable - the table to get the Scanner forscan - the scan object to get a Scanner fornumRows - number of rows to return
TIOError
org.apache.thrift.TException
public void send_getScannerResults(ByteBuffer table,
TScan scan,
int numRows)
throws org.apache.thrift.TException
org.apache.thrift.TException
public List<TResult> recv_getScannerResults()
throws TIOError,
org.apache.thrift.TException
TIOError
org.apache.thrift.TException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||