|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
@InterfaceAudience.Private public interface RegionScanner
RegionScanner describes iterators over rows in an HRegion.
| Method Summary | |
|---|---|
long |
getMaxResultSize()
|
long |
getMvccReadPoint()
|
HRegionInfo |
getRegionInfo()
|
boolean |
isFilterDone()
|
boolean |
nextRaw(List<KeyValue> result)
Grab the next row's worth of values with the default limit on the number of values to return. |
boolean |
nextRaw(List<KeyValue> result,
int limit)
Grab the next row's worth of values with a limit on the number of values to return. |
boolean |
reseek(byte[] row)
Do a reseek to the required row. |
| Methods inherited from interface org.apache.hadoop.hbase.regionserver.InternalScanner |
|---|
close, next, next |
| Method Detail |
|---|
HRegionInfo getRegionInfo()
boolean isFilterDone()
throws IOException
IOException - in case of I/O failure on a filter.
boolean reseek(byte[] row)
throws IOException
IOException
IllegalArgumentException - if row is nulllong getMaxResultSize()
Scan.setMaxResultSize(long)long getMvccReadPoint()
MultiVersionConsistencyControl
boolean nextRaw(List<KeyValue> result)
throws IOException
nextRaw(List, int)
result - return output array
IOException - e
boolean nextRaw(List<KeyValue> result,
int limit)
throws IOException
HRegion region = ...;
RegionScanner scanner = ...
MultiVersionConsistencyControl.setThreadReadPoint(scanner.getMvccReadPoint());
region.startRegionOperation();
try {
synchronized(scanner) {
...
boolean moreRows = scanner.nextRaw(values);
...
}
} finally {
region.closeRegionOperation();
}
result - return output arraylimit - limit on row count to get
IOException - e
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||