|
||||||||||
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.
Field Summary | |
---|---|
static long |
versionID
initial version |
Method Summary | |
---|---|
void |
batchUpdate(Text regionName,
long timestamp,
BatchUpdate b)
Applies a batch of updates via one RPC |
void |
close(long scannerId)
Close a scanner |
void |
deleteAll(Text regionName,
Text row,
long timestamp)
Delete all cells that match the passed row and whose timestamp is equal-to or older than the passed timestamp. |
void |
deleteAll(Text regionName,
Text row,
Text column,
long timestamp)
Delete all cells that match the passed row and column and whose timestamp is equal-to or older than the passed timestamp. |
void |
deleteFamily(Text regionName,
Text row,
Text family,
long timestamp)
Delete all cells for a row with matching column family with timestamps less than or equal to timestamp. |
byte[] |
get(Text regionName,
Text row,
Text column)
Retrieve a single value from the specified region for the specified row and column keys |
byte[][] |
get(Text regionName,
Text row,
Text column,
int numVersions)
Get the specified number of versions of the specified row and column |
byte[][] |
get(Text regionName,
Text row,
Text column,
long timestamp,
int numVersions)
Get the specified number of versions of the specified row and column with the specified timestamp. |
HbaseMapWritable |
getClosestRowBefore(Text regionName,
Text row)
Return all the data for the row that matches row exactly, or the one that immediately preceeds it. |
HbaseMapWritable |
getClosestRowBefore(Text regionName,
Text row,
long ts)
Return all the data for the row that matches row exactly, or the one that immediately preceeds it, at or immediately before ts. |
HRegionInfo |
getRegionInfo(Text regionName)
Get metainfo about an HRegion |
HbaseMapWritable |
getRow(Text regionName,
Text row)
Get all the data for the specified row |
HbaseMapWritable |
getRow(Text regionName,
Text row,
long ts)
Get all the data for the specified row at a given timestamp |
HbaseMapWritable |
next(long scannerId)
Get the next set of values |
long |
openScanner(Text regionName,
Text[] columns,
Text startRow,
long timestamp,
RowFilterInterface filter)
Opens a remote scanner with a RowFilter. |
Methods inherited from interface org.apache.hadoop.ipc.VersionedProtocol |
---|
getProtocolVersion |
Field Detail |
---|
static final long versionID
Method Detail |
---|
HRegionInfo getRegionInfo(Text regionName) throws NotServingRegionException
regionName
- name of the region
NotServingRegionException
byte[] get(Text regionName, Text row, Text column) throws IOException
regionName
- name of regionrow
- row keycolumn
- column key
IOException
byte[][] get(Text regionName, Text row, Text column, int numVersions) throws IOException
regionName
- region namerow
- row keycolumn
- column keynumVersions
- number of versions to return
IOException
byte[][] get(Text regionName, Text row, Text column, long timestamp, int numVersions) throws IOException
regionName
- region namerow
- row keycolumn
- column keytimestamp
- timestampnumVersions
- number of versions to return
IOException
HbaseMapWritable getRow(Text regionName, Text row) throws IOException
regionName
- region namerow
- row key
IOException
HbaseMapWritable getRow(Text regionName, Text row, long ts) throws IOException
regionName
- region namerow
- row key
IOException
HbaseMapWritable getClosestRowBefore(Text regionName, Text row) throws IOException
regionName
- region namerow
- row key
IOException
HbaseMapWritable getClosestRowBefore(Text regionName, Text row, long ts) throws IOException
regionName
- region namerow
- row key
IOException
void batchUpdate(Text regionName, long timestamp, BatchUpdate b) throws IOException
regionName
- name of the region to updatetimestamp
- the time to be associated with the changesb
- BatchUpdate
IOException
void deleteAll(Text regionName, Text row, Text column, long timestamp) throws IOException
regionName
- region namerow
- row keycolumn
- column keytimestamp
- Delete all entries that have this timestamp or older
IOException
void deleteAll(Text regionName, Text row, long timestamp) throws IOException
regionName
- region namerow
- row keytimestamp
- Delete all entries that have this timestamp or older
IOException
void deleteFamily(Text regionName, Text row, Text family, long timestamp) throws IOException
regionName
- The name of the region to operate onrow
- The row to operate onfamily
- The column family to matchtimestamp
- Timestamp to match
IOException
long openScanner(Text regionName, Text[] columns, Text startRow, long timestamp, RowFilterInterface filter) throws IOException
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
HbaseMapWritable next(long scannerId) throws IOException
scannerId
- clientId passed to openScanner
IOException
void close(long scannerId) throws IOException
scannerId
- the scanner id returned by openScanner
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |