|
||||||||||
| 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 | |
|---|---|
static int |
COMMIT_OK
Status code representing a transaction that can be committed. |
static int |
COMMIT_OK_READ_ONLY
Status code representing a read-only transaction that can be committed. |
static int |
COMMIT_UNSUCESSFUL
Status code representing a transaction that cannot be committed. |
| Fields inherited from interface org.apache.hadoop.hbase.ipc.HBaseRPCProtocolVersion |
|---|
versionID |
| Method Summary | |
|---|---|
void |
abort(byte[] regionName,
long transactionId)
Abort the transaction. |
void |
beginTransaction(long transactionId,
byte[] regionName)
Sent to initiate a transaction. |
void |
commit(byte[] regionName,
long transactionId)
Commit the transaction. |
boolean |
commitIfPossible(byte[] regionName,
long transactionId)
Try to commit the given transaction. |
int |
commitRequest(byte[] regionName,
long transactionId)
Ask if we can commit the given transaction. |
void |
delete(long transactionId,
byte[] regionName,
Delete delete)
Deletes all the KeyValues that match those found in the Delete object, if their ts <= to the Delete. |
Result |
get(long transactionId,
byte[] regionName,
Get get)
Perform a transactional Get operation. |
long |
openScanner(long transactionId,
byte[] regionName,
Scan scan)
Opens a remote transactional scanner with a RowFilter. |
void |
put(long transactionId,
byte[] regionName,
Put put)
Transactional put data into the specified region |
int |
put(long transactionId,
byte[] regionName,
Put[] puts)
Put an array of puts into the specified region |
| Methods inherited from interface org.apache.hadoop.hbase.ipc.HRegionInterface |
|---|
checkAndPut, close, delete, delete, exists, get, getClosestRowBefore, getHServerInfo, getOnlineRegionsAsArray, getRegionInfo, getRegionsAssignment, incrementColumnValue, lockRow, next, next, openScanner, put, put, unlockRow |
| Methods inherited from interface org.apache.hadoop.ipc.VersionedProtocol |
|---|
getProtocolVersion |
| Field Detail |
|---|
static final int COMMIT_OK
static final int COMMIT_OK_READ_ONLY
static final int COMMIT_UNSUCESSFUL
| Method Detail |
|---|
void beginTransaction(long transactionId,
byte[] regionName)
throws IOException
transactionId - regionName - name of region
IOException
Result get(long transactionId,
byte[] regionName,
Get get)
throws IOException
regionName - name of region to get fromget - Get operation
IOException
void put(long transactionId,
byte[] regionName,
Put put)
throws IOException
regionName - put - the data to be put
IOException
int put(long transactionId,
byte[] regionName,
Put[] puts)
throws IOException
regionName - puts -
IOException
void delete(long transactionId,
byte[] regionName,
Delete delete)
throws IOException
regionName - delete -
IOException
long openScanner(long transactionId,
byte[] regionName,
Scan scan)
throws IOException
regionName - name of region to scanscan - configured scan object
IOException
int commitRequest(byte[] regionName,
long transactionId)
throws IOException
regionName - transactionId -
IOException
boolean commitIfPossible(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 | |||||||||