class BufferingScanResultConsumer extends Object implements org.apache.hadoop.hbase.client.AdvancedScanResultConsumer
take()
 method below to get the result one by one. Should only be used by tests, do not write production
 code like this as the buffer is unlimited and may cause OOM.| Modifier and Type | Field and Description | 
|---|---|
| private Throwable | error | 
| private boolean | finished | 
| private Queue<org.apache.hadoop.hbase.client.Result> | queue | 
| private org.apache.hadoop.hbase.client.metrics.ScanMetrics | scanMetrics | 
| Constructor and Description | 
|---|
| BufferingScanResultConsumer() | 
| Modifier and Type | Method and Description | 
|---|---|
| org.apache.hadoop.hbase.client.metrics.ScanMetrics | getScanMetrics() | 
| void | onComplete() | 
| void | onError(Throwable error) | 
| void | onNext(org.apache.hadoop.hbase.client.Result[] results,
      org.apache.hadoop.hbase.client.AdvancedScanResultConsumer.ScanController controller) | 
| void | onScanMetricsCreated(org.apache.hadoop.hbase.client.metrics.ScanMetrics scanMetrics) | 
| org.apache.hadoop.hbase.client.Result | take() | 
private org.apache.hadoop.hbase.client.metrics.ScanMetrics scanMetrics
private boolean finished
BufferingScanResultConsumer()
public void onScanMetricsCreated(org.apache.hadoop.hbase.client.metrics.ScanMetrics scanMetrics)
onScanMetricsCreated in interface org.apache.hadoop.hbase.client.ScanResultConsumerBasepublic void onNext(org.apache.hadoop.hbase.client.Result[] results, org.apache.hadoop.hbase.client.AdvancedScanResultConsumer.ScanController controller)
onNext in interface org.apache.hadoop.hbase.client.AdvancedScanResultConsumerpublic void onError(Throwable error)
onError in interface org.apache.hadoop.hbase.client.ScanResultConsumerBasepublic void onComplete()
onComplete in interface org.apache.hadoop.hbase.client.ScanResultConsumerBasepublic org.apache.hadoop.hbase.client.Result take() throws IOException, InterruptedException
IOExceptionInterruptedExceptionpublic org.apache.hadoop.hbase.client.metrics.ScanMetrics getScanMetrics()
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.