class TracedScanResultConsumer extends Object implements SimpleScanResultConsumer
SimpleScanResultConsumer
that adds tracing of spans to its implementation.Modifier and Type | Field and Description |
---|---|
private SimpleScanResultConsumer |
delegate |
Constructor and Description |
---|
TracedScanResultConsumer(SimpleScanResultConsumer delegate) |
Modifier and Type | Method and Description |
---|---|
List<org.apache.hadoop.hbase.client.Result> |
getAll() |
org.apache.hadoop.hbase.client.metrics.ScanMetrics |
getScanMetrics() |
void |
onComplete() |
void |
onError(Throwable error) |
boolean |
onNext(org.apache.hadoop.hbase.client.Result result) |
void |
onScanMetricsCreated(org.apache.hadoop.hbase.client.metrics.ScanMetrics scanMetrics) |
private final SimpleScanResultConsumer delegate
public TracedScanResultConsumer(SimpleScanResultConsumer delegate)
public void onScanMetricsCreated(org.apache.hadoop.hbase.client.metrics.ScanMetrics scanMetrics)
onScanMetricsCreated
in interface org.apache.hadoop.hbase.client.ScanResultConsumerBase
public boolean onNext(org.apache.hadoop.hbase.client.Result result)
onNext
in interface org.apache.hadoop.hbase.client.ScanResultConsumer
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 List<org.apache.hadoop.hbase.client.Result> getAll() throws Exception
getAll
in interface SimpleScanResultConsumer
Exception
public org.apache.hadoop.hbase.client.metrics.ScanMetrics getScanMetrics()
getScanMetrics
in interface SimpleScanResultConsumer
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.