Class TestScannerHeartbeatMessages.HeartbeatRegionScanner
java.lang.Object
org.apache.hadoop.hbase.regionserver.TestScannerHeartbeatMessages.HeartbeatRegionScanner
- All Implemented Interfaces:
Closeable
,AutoCloseable
,org.apache.hadoop.hbase.ipc.RpcCallback
,org.apache.hadoop.hbase.regionserver.InternalScanner
,org.apache.hadoop.hbase.regionserver.RegionScanner
,org.apache.hadoop.hbase.regionserver.Shipper
- Enclosing class:
- TestScannerHeartbeatMessages
Custom RegionScanner that can be configured to sleep between retrievals of row Results and/or
column family cells
-
Field Summary
Modifier and TypeFieldDescriptionprotected final org.apache.hadoop.hbase.CellComparator
protected final boolean
protected org.apache.hadoop.hbase.Cell
(package private) org.apache.hadoop.hbase.regionserver.KeyValueHeap
protected final org.apache.hadoop.hbase.regionserver.HRegion
protected final byte[]
(package private) org.apache.hadoop.hbase.regionserver.KeyValueHeap
-
Constructor Summary
ConstructorDescriptionHeartbeatRegionScanner
(org.apache.hadoop.hbase.client.Scan scan, List<org.apache.hadoop.hbase.regionserver.KeyValueScanner> additionalScanners, org.apache.hadoop.hbase.regionserver.HRegion region) -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
int
getBatch()
long
long
org.apache.hadoop.hbase.client.RegionInfo
protected void
initializeKVHeap
(List<org.apache.hadoop.hbase.regionserver.KeyValueScanner> scanners, List<org.apache.hadoop.hbase.regionserver.KeyValueScanner> joinedScanners, org.apache.hadoop.hbase.regionserver.HRegion region) boolean
boolean
boolean
next
(List<org.apache.hadoop.hbase.Cell> arg0, org.apache.hadoop.hbase.regionserver.ScannerContext arg1) boolean
boolean
nextRaw
(List<org.apache.hadoop.hbase.Cell> outResults, org.apache.hadoop.hbase.regionserver.ScannerContext context) protected boolean
nextRow
(org.apache.hadoop.hbase.regionserver.ScannerContext arg0, org.apache.hadoop.hbase.Cell arg1) boolean
reseek
(byte[] arg0) protected final void
void
run()
void
shipped()
protected boolean
shouldStop
(org.apache.hadoop.hbase.Cell arg0)
-
Field Details
-
storeHeap
org.apache.hadoop.hbase.regionserver.KeyValueHeap storeHeap -
joinedHeap
org.apache.hadoop.hbase.regionserver.KeyValueHeap joinedHeap -
joinedContinuationRow
protected org.apache.hadoop.hbase.Cell joinedContinuationRow -
stopRow
protected final byte[] stopRow -
includeStopRow
protected final boolean includeStopRow -
region
protected final org.apache.hadoop.hbase.regionserver.HRegion region -
comparator
protected final org.apache.hadoop.hbase.CellComparator comparator
-
-
Constructor Details
-
HeartbeatRegionScanner
HeartbeatRegionScanner(org.apache.hadoop.hbase.client.Scan scan, List<org.apache.hadoop.hbase.regionserver.KeyValueScanner> additionalScanners, org.apache.hadoop.hbase.regionserver.HRegion region) throws IOException - Throws:
IOException
-
-
Method Details
-
nextRaw
public boolean nextRaw(List<org.apache.hadoop.hbase.Cell> outResults, org.apache.hadoop.hbase.regionserver.ScannerContext context) throws IOException - Specified by:
nextRaw
in interfaceorg.apache.hadoop.hbase.regionserver.RegionScanner
- Throws:
IOException
-
initializeKVHeap
protected void initializeKVHeap(List<org.apache.hadoop.hbase.regionserver.KeyValueScanner> scanners, List<org.apache.hadoop.hbase.regionserver.KeyValueScanner> joinedScanners, org.apache.hadoop.hbase.regionserver.HRegion region) throws IOException - Throws:
IOException
-
getRegionInfo
public org.apache.hadoop.hbase.client.RegionInfo getRegionInfo()- Specified by:
getRegionInfo
in interfaceorg.apache.hadoop.hbase.regionserver.RegionScanner
-
getMaxResultSize
public long getMaxResultSize()- Specified by:
getMaxResultSize
in interfaceorg.apache.hadoop.hbase.regionserver.RegionScanner
-
getMvccReadPoint
public long getMvccReadPoint()- Specified by:
getMvccReadPoint
in interfaceorg.apache.hadoop.hbase.regionserver.RegionScanner
-
getBatch
public int getBatch()- Specified by:
getBatch
in interfaceorg.apache.hadoop.hbase.regionserver.RegionScanner
-
getOperationId
- Specified by:
getOperationId
in interfaceorg.apache.hadoop.hbase.regionserver.RegionScanner
-
resetFilters
- Throws:
IOException
-
next
- Specified by:
next
in interfaceorg.apache.hadoop.hbase.regionserver.InternalScanner
- Throws:
IOException
-
next
public boolean next(List<org.apache.hadoop.hbase.Cell> arg0, org.apache.hadoop.hbase.regionserver.ScannerContext arg1) throws IOException - Specified by:
next
in interfaceorg.apache.hadoop.hbase.regionserver.InternalScanner
- Throws:
IOException
-
nextRaw
- Specified by:
nextRaw
in interfaceorg.apache.hadoop.hbase.regionserver.RegionScanner
- Throws:
IOException
-
isFilterDone
- Specified by:
isFilterDone
in interfaceorg.apache.hadoop.hbase.regionserver.RegionScanner
- Throws:
IOException
-
nextRow
protected boolean nextRow(org.apache.hadoop.hbase.regionserver.ScannerContext arg0, org.apache.hadoop.hbase.Cell arg1) throws IOException - Throws:
IOException
-
shouldStop
protected boolean shouldStop(org.apache.hadoop.hbase.Cell arg0) -
close
public void close()- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Specified by:
close
in interfaceorg.apache.hadoop.hbase.regionserver.InternalScanner
-
reseek
- Specified by:
reseek
in interfaceorg.apache.hadoop.hbase.regionserver.RegionScanner
- Throws:
IOException
-
shipped
- Specified by:
shipped
in interfaceorg.apache.hadoop.hbase.regionserver.Shipper
- Throws:
IOException
-
run
- Specified by:
run
in interfaceorg.apache.hadoop.hbase.ipc.RpcCallback
- Throws:
IOException
-