|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface HRegionInterface
Clients interact with HRegionServers using a handle to the HRegionInterface.
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 | |
---|---|
boolean |
checkAndPut(byte[] regionName,
byte[] row,
byte[] family,
byte[] qualifier,
byte[] value,
Put put)
Atomically checks if a row/family/qualifier value match the expectedValue. |
void |
close(long scannerId)
Close a scanner |
void |
delete(byte[] regionName,
Delete delete)
Deletes all the KeyValues that match those found in the Delete object, if their ts <= to the Delete. |
int |
delete(byte[] regionName,
Delete[] deletes)
Put an array of deletes into the specified region |
boolean |
exists(byte[] regionName,
Get get)
Perform exists operation. |
Result |
get(byte[] regionName,
Get get)
Perform Get operation. |
Result |
getClosestRowBefore(byte[] regionName,
byte[] row,
byte[] family)
Return all the data for the row that matches row exactly, or the one that immediately preceeds it. |
HServerInfo |
getHServerInfo()
Method used when a master is taking the place of another failed one. |
HRegion[] |
getOnlineRegionsAsArray()
|
HRegionInfo |
getRegionInfo(byte[] regionName)
Get metainfo about an HRegion |
HRegionInfo[] |
getRegionsAssignment()
Method used when a master is taking the place of another failed one. |
long |
incrementColumnValue(byte[] regionName,
byte[] row,
byte[] family,
byte[] qualifier,
long amount,
boolean writeToWAL)
Atomically increments a column value. |
long |
lockRow(byte[] regionName,
byte[] row)
Opens a remote row lock. |
Result |
next(long scannerId)
Get the next set of values |
Result[] |
next(long scannerId,
int numberOfRows)
Get the next set of values |
long |
openScanner(byte[] regionName,
Scan scan)
Opens a remote scanner with a RowFilter. |
void |
put(byte[] regionName,
Put put)
Put data into the specified region |
int |
put(byte[] regionName,
Put[] puts)
Put an array of puts into the specified region |
void |
unlockRow(byte[] regionName,
long lockId)
Releases a remote row lock. |
Methods inherited from interface org.apache.hadoop.ipc.VersionedProtocol |
---|
getProtocolVersion |
Method Detail |
---|
HRegionInfo getRegionInfo(byte[] regionName) throws NotServingRegionException
regionName
- name of the region
NotServingRegionException
Result getClosestRowBefore(byte[] regionName, byte[] row, byte[] family) throws IOException
regionName
- region namerow
- row keyfamily
- Column family to look for row in.
IOException
HRegion[] getOnlineRegionsAsArray()
Result get(byte[] regionName, Get get) throws IOException
regionName
- name of region to get fromget
- Get operation
IOException
boolean exists(byte[] regionName, Get get) throws IOException
regionName
- name of region to get fromget
- Get operation describing cell to test
IOException
void put(byte[] regionName, Put put) throws IOException
regionName
- put
- the data to be put
IOException
int put(byte[] regionName, Put[] puts) throws IOException
regionName
- puts
-
IOException
void delete(byte[] regionName, Delete delete) throws IOException
regionName
- delete
-
IOException
int delete(byte[] regionName, Delete[] deletes) throws IOException
regionName
- deletes
-
IOException
boolean checkAndPut(byte[] regionName, byte[] row, byte[] family, byte[] qualifier, byte[] value, Put put) throws IOException
regionName
- row
- family
- qualifier
- value
- the expected valueput
-
IOException
long incrementColumnValue(byte[] regionName, byte[] row, byte[] family, byte[] qualifier, long amount, boolean writeToWAL) throws IOException
regionName
- row
- family
- qualifier
- amount
- writeToWAL
- whether to write the increment to the WAL
IOException
long openScanner(byte[] regionName, Scan scan) throws IOException
regionName
- name of region to scanscan
- configured scan object
IOException
Result next(long scannerId) throws IOException
scannerId
- clientId passed to openScanner
IOException
Result[] next(long scannerId, int numberOfRows) throws IOException
scannerId
- clientId passed to openScannernumberOfRows
- the number of rows to fetch
IOException
void close(long scannerId) throws IOException
scannerId
- the scanner id returned by openScanner
IOException
long lockRow(byte[] regionName, byte[] row) throws IOException
regionName
- name of regionrow
- row to lock
IOException
void unlockRow(byte[] regionName, long lockId) throws IOException
regionName
- lockId
- the lock id returned by lockRow
IOException
HRegionInfo[] getRegionsAssignment() throws IOException
IOException
HServerInfo getHServerInfo() throws IOException
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |