|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface TransactionalRegionInterface
Interface for transactional region servers.
NOTE: if you change the interface, you must change the RPC version number in HBaseRPCProtocolVersion
Field Summary |
---|
Fields inherited from interface org.apache.hadoop.hbase.ipc.HBaseRPCProtocolVersion |
---|
versionID |
Method Summary | |
---|---|
void |
abort(byte[] regionName,
long transactionId)
Abort the transaction. |
void |
batchUpdate(long transactionId,
byte[] regionName,
BatchUpdate b)
Applies a batch of updates via one RPC |
void |
beginTransaction(long transactionId,
byte[] regionName)
Sent to initiate a transaction. |
void |
commit(byte[] regionName,
long transactionId)
Commit the transaction. |
boolean |
commitRequest(byte[] regionName,
long transactionId)
Ask if we can commit the given transaction. |
void |
deleteAll(long transactionId,
byte[] regionName,
byte[] row,
long timestamp)
Delete all cells that match the passed row and whose timestamp is equal-to or older than the passed timestamp. |
Cell |
get(long transactionId,
byte[] regionName,
byte[] row,
byte[] column)
Retrieve a single value from the specified region for the specified row and column keys |
Cell[] |
get(long transactionId,
byte[] regionName,
byte[] row,
byte[] column,
int numVersions)
Get the specified number of versions of the specified row and column |
Cell[] |
get(long transactionId,
byte[] regionName,
byte[] row,
byte[] column,
long timestamp,
int numVersions)
Get the specified number of versions of the specified row and column with the specified timestamp. |
RowResult |
getRow(long transactionId,
byte[] regionName,
byte[] row,
byte[][] columns)
Get selected columns for the specified row at the latest timestamp. |
RowResult |
getRow(long transactionId,
byte[] regionName,
byte[] row,
byte[][] columns,
long ts)
Get selected columns for the specified row at a given timestamp. |
RowResult |
getRow(long transactionId,
byte[] regionName,
byte[] row,
long ts)
Get all the data for the specified row at a given timestamp |
long |
openScanner(long transactionId,
byte[] regionName,
byte[][] columns,
byte[] startRow,
long timestamp,
RowFilterInterface filter)
Opens a remote scanner with a RowFilter. |
Methods inherited from interface org.apache.hadoop.hbase.ipc.HRegionInterface |
---|
batchUpdate, batchUpdates, checkAndSave, close, deleteAll, deleteAll, deleteAllByRegex, deleteFamily, deleteFamilyByRegex, exists, get, getClosestRowBefore, getRegionInfo, getRow, lockRow, next, next, openScanner, unlockRow |
Methods inherited from interface org.apache.hadoop.ipc.VersionedProtocol |
---|
getProtocolVersion |
Method Detail |
---|
void beginTransaction(long transactionId, byte[] regionName) throws IOException
transactionId
- regionName
- name of region
IOException
Cell get(long transactionId, byte[] regionName, byte[] row, byte[] column) throws IOException
transactionId
- regionName
- name of regionrow
- row keycolumn
- column key
IOException
Cell[] get(long transactionId, byte[] regionName, byte[] row, byte[] column, int numVersions) throws IOException
transactionId
- regionName
- region namerow
- row keycolumn
- column keynumVersions
- number of versions to return
IOException
Cell[] get(long transactionId, byte[] regionName, byte[] row, byte[] column, long timestamp, int numVersions) throws IOException
transactionId
- regionName
- region namerow
- row keycolumn
- column keytimestamp
- timestampnumVersions
- number of versions to return
IOException
RowResult getRow(long transactionId, byte[] regionName, byte[] row, long ts) throws IOException
transactionId
- regionName
- region namerow
- row keyts
- timestamp
IOException
RowResult getRow(long transactionId, byte[] regionName, byte[] row, byte[][] columns, long ts) throws IOException
transactionId
- regionName
- region namerow
- row keycolumns
- colums to getts
- timestamp
IOException
RowResult getRow(long transactionId, byte[] regionName, byte[] row, byte[][] columns) throws IOException
transactionId
- regionName
- region namerow
- row keycolumns
- columns to get
IOException
void deleteAll(long transactionId, byte[] regionName, byte[] row, long timestamp) throws IOException
transactionId
- regionName
- region namerow
- row keytimestamp
- Delete all entries that have this timestamp or older
IOException
long openScanner(long transactionId, byte[] regionName, byte[][] columns, byte[] startRow, long timestamp, RowFilterInterface filter) throws IOException
transactionId
- regionName
- name of region to scancolumns
- columns to scan. If column name is a column family, all
columns of the specified column family are returned. Its also possible to
pass a regex for column family name. A column name is judged to be regex if
it contains at least one of the following characters:
\+|^&*$[]]}{)(
.startRow
- starting row to scantimestamp
- only return values whose timestamp is <= this valuefilter
- RowFilter for filtering results at the row-level.
IOException
void batchUpdate(long transactionId, byte[] regionName, BatchUpdate b) throws IOException
transactionId
- regionName
- name of the region to updateb
- BatchUpdate
IOException
boolean commitRequest(byte[] regionName, long transactionId) throws IOException
regionName
- transactionId
-
IOException
void commit(byte[] regionName, long transactionId) throws IOException
regionName
- transactionId
-
IOException
void abort(byte[] regionName, long transactionId) throws IOException
regionName
- transactionId
-
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |