public class TracedAdvancedScanResultConsumer extends Object implements org.apache.hadoop.hbase.client.AdvancedScanResultConsumer
BufferingScanResultConsumer
that adds tracing spans to its
implementation of the AdvancedScanResultConsumer
API.Modifier and Type | Field and Description |
---|---|
private BufferingScanResultConsumer |
delegate |
Constructor and Description |
---|
TracedAdvancedScanResultConsumer() |
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 final BufferingScanResultConsumer delegate
public TracedAdvancedScanResultConsumer()
public void onScanMetricsCreated(org.apache.hadoop.hbase.client.metrics.ScanMetrics scanMetrics)
onScanMetricsCreated
in interface org.apache.hadoop.hbase.client.ScanResultConsumerBase
public 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.AdvancedScanResultConsumer
public void onError(Throwable error)
onError
in interface org.apache.hadoop.hbase.client.ScanResultConsumerBase
public void onComplete()
onComplete
in interface org.apache.hadoop.hbase.client.ScanResultConsumerBase
public org.apache.hadoop.hbase.client.Result take() throws IOException, InterruptedException
IOException
InterruptedException
public org.apache.hadoop.hbase.client.metrics.ScanMetrics getScanMetrics()
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.