public static interface THBaseService.Iface
| Modifier and Type | Method and Description |
|---|---|
TResult |
append(java.nio.ByteBuffer table,
TAppend tappend) |
boolean |
checkAndDelete(java.nio.ByteBuffer table,
java.nio.ByteBuffer row,
java.nio.ByteBuffer family,
java.nio.ByteBuffer qualifier,
java.nio.ByteBuffer value,
TDelete tdelete)
Atomically checks if a row/family/qualifier value matches the expected
value.
|
boolean |
checkAndPut(java.nio.ByteBuffer table,
java.nio.ByteBuffer row,
java.nio.ByteBuffer family,
java.nio.ByteBuffer qualifier,
java.nio.ByteBuffer value,
TPut tput)
Atomically checks if a row/family/qualifier value matches the expected
value.
|
void |
closeScanner(int scannerId)
Closes the scanner.
|
java.util.List<TDelete> |
deleteMultiple(java.nio.ByteBuffer table,
java.util.List<TDelete> tdeletes)
Bulk commit a List of TDeletes to the table.
|
void |
deleteSingle(java.nio.ByteBuffer table,
TDelete tdelete)
Deletes as specified by the TDelete.
|
boolean |
exists(java.nio.ByteBuffer table,
TGet tget)
Test for the existence of columns in the table, as specified in the TGet.
|
TResult |
get(java.nio.ByteBuffer table,
TGet tget)
Method for getting data from a row.
|
java.util.List<THRegionLocation> |
getAllRegionLocations(java.nio.ByteBuffer table)
Get all of the region locations for a given table.
|
java.util.List<TResult> |
getMultiple(java.nio.ByteBuffer table,
java.util.List<TGet> tgets)
Method for getting multiple rows.
|
THRegionLocation |
getRegionLocation(java.nio.ByteBuffer table,
java.nio.ByteBuffer row,
boolean reload)
Given a table and a row get the location of the region that
would contain the given row key.
|
java.util.List<TResult> |
getScannerResults(java.nio.ByteBuffer table,
TScan tscan,
int numRows)
Get results for the provided TScan object.
|
java.util.List<TResult> |
getScannerRows(int scannerId,
int numRows)
Grabs multiple rows from a Scanner.
|
TResult |
increment(java.nio.ByteBuffer table,
TIncrement tincrement) |
void |
mutateRow(java.nio.ByteBuffer table,
TRowMutations trowMutations)
mutateRow performs multiple mutations atomically on a single row.
|
int |
openScanner(java.nio.ByteBuffer table,
TScan tscan)
Get a Scanner for the provided TScan object.
|
void |
put(java.nio.ByteBuffer table,
TPut tput)
Commit a TPut to a table.
|
void |
putMultiple(java.nio.ByteBuffer table,
java.util.List<TPut> tputs)
Commit a List of Puts to the table.
|
boolean exists(java.nio.ByteBuffer table,
TGet tget)
throws TIOError,
org.apache.thrift.TException
table - the table to check ontget - the TGet to check forTIOErrororg.apache.thrift.TExceptionTResult get(java.nio.ByteBuffer table, TGet tget) throws TIOError, org.apache.thrift.TException
table - the table to get fromtget - the TGet to fetchTIOErrororg.apache.thrift.TExceptionjava.util.List<TResult> getMultiple(java.nio.ByteBuffer table, java.util.List<TGet> tgets) throws TIOError, org.apache.thrift.TException
table - the table to get fromtgets - a list of TGets to fetch, the Result list
will have the Results at corresponding positions
or null if there was an errorTIOErrororg.apache.thrift.TExceptionvoid put(java.nio.ByteBuffer table,
TPut tput)
throws TIOError,
org.apache.thrift.TException
table - the table to put data intput - the TPut to putTIOErrororg.apache.thrift.TExceptionboolean checkAndPut(java.nio.ByteBuffer table,
java.nio.ByteBuffer row,
java.nio.ByteBuffer family,
java.nio.ByteBuffer qualifier,
java.nio.ByteBuffer value,
TPut tput)
throws TIOError,
org.apache.thrift.TException
table - 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 questiontput - the TPut to put if the check succeedsTIOErrororg.apache.thrift.TExceptionvoid putMultiple(java.nio.ByteBuffer table,
java.util.List<TPut> tputs)
throws TIOError,
org.apache.thrift.TException
table - the table to put data intputs - a list of TPuts to commitTIOErrororg.apache.thrift.TExceptionvoid deleteSingle(java.nio.ByteBuffer table,
TDelete tdelete)
throws TIOError,
org.apache.thrift.TException
table - the table to delete fromtdelete - the TDelete to deleteTIOErrororg.apache.thrift.TExceptionjava.util.List<TDelete> deleteMultiple(java.nio.ByteBuffer table, java.util.List<TDelete> tdeletes) throws TIOError, org.apache.thrift.TException
table - the table to delete fromtdeletes - list of TDeletes to deleteTIOErrororg.apache.thrift.TExceptionboolean checkAndDelete(java.nio.ByteBuffer table,
java.nio.ByteBuffer row,
java.nio.ByteBuffer family,
java.nio.ByteBuffer qualifier,
java.nio.ByteBuffer value,
TDelete tdelete)
throws TIOError,
org.apache.thrift.TException
table - 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 questiontdelete - the TDelete to execute if the check succeedsTIOErrororg.apache.thrift.TExceptionTResult increment(java.nio.ByteBuffer table, TIncrement tincrement) throws TIOError, org.apache.thrift.TException
TIOErrororg.apache.thrift.TExceptionTResult append(java.nio.ByteBuffer table, TAppend tappend) throws TIOError, org.apache.thrift.TException
TIOErrororg.apache.thrift.TExceptionint openScanner(java.nio.ByteBuffer table,
TScan tscan)
throws TIOError,
org.apache.thrift.TException
table - the table to get the Scanner fortscan - the scan object to get a Scanner forTIOErrororg.apache.thrift.TExceptionjava.util.List<TResult> getScannerRows(int scannerId, int numRows) throws TIOError, TIllegalArgument, org.apache.thrift.TException
scannerId - the Id of the Scanner to return rows from. This is an Id returned from the openScanner function.numRows - number of rows to returnTIOErrorTIllegalArgumentorg.apache.thrift.TExceptionvoid closeScanner(int scannerId)
throws TIOError,
TIllegalArgument,
org.apache.thrift.TException
scannerId - the Id of the Scanner to close *TIOErrorTIllegalArgumentorg.apache.thrift.TExceptionvoid mutateRow(java.nio.ByteBuffer table,
TRowMutations trowMutations)
throws TIOError,
org.apache.thrift.TException
table - table to apply the mutationstrowMutations - mutations to applyTIOErrororg.apache.thrift.TExceptionjava.util.List<TResult> getScannerResults(java.nio.ByteBuffer table, TScan tscan, int numRows) throws TIOError, org.apache.thrift.TException
table - the table to get the Scanner fortscan - the scan object to get a Scanner fornumRows - number of rows to returnTIOErrororg.apache.thrift.TExceptionTHRegionLocation getRegionLocation(java.nio.ByteBuffer table, java.nio.ByteBuffer row, boolean reload) throws TIOError, org.apache.thrift.TException
table - row - reload - TIOErrororg.apache.thrift.TExceptionjava.util.List<THRegionLocation> getAllRegionLocations(java.nio.ByteBuffer table) throws TIOError, org.apache.thrift.TException
table - TIOErrororg.apache.thrift.TException