public interface RegionScanner extends InternalScanner
Modifier and Type | Method and Description |
---|---|
long |
getMvccReadPoint() |
HRegionInfo |
getRegionInfo() |
boolean |
isFilterDone() |
boolean |
nextRaw(List<KeyValue> result,
int limit,
String metric)
Grab the next row's worth of values with a limit on the number of values
to return.
|
boolean |
nextRaw(List<KeyValue> result,
String metric)
Grab the next row's worth of values with the default limit on the number of values
to return.
|
boolean |
reseek(byte[] row)
Do a reseek to the required row.
|
HRegionInfo getRegionInfo()
boolean isFilterDone()
boolean reseek(byte[] row) throws IOException
IOException
IllegalArgumentException
- if row is nulllong getMvccReadPoint()
MultiVersionConsistencyControl
boolean nextRaw(List<KeyValue> result, String metric) throws IOException
nextRaw(List, int, String)
result
- return output arraymetric
- the metric nameIOException
- eboolean nextRaw(List<KeyValue> result, int limit, String metric) 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 getmetric
- the metric nameIOException
- eCopyright © 2014 The Apache Software Foundation. All Rights Reserved.