com.google.cloud.bigtable.hbase.adapters.read
Class BigtableResultScannerAdapter<T>
- java.lang.Object
-
- com.google.cloud.bigtable.hbase.adapters.read.BigtableResultScannerAdapter<T>
-
public class BigtableResultScannerAdapter<T> extends Object
Adapt a Bigtable ResultScanner to an HBase Result Scanner.- Version:
- $Id: $Id
- Author:
- sduskis
-
-
Constructor Summary
Constructors Constructor and Description BigtableResultScannerAdapter(ResponseAdapter<T,Result> rowAdapter)
Constructor for BigtableResultScannerAdapter.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description ResultScanner
adapt(ResultScanner<T> bigtableResultScanner, io.opencensus.trace.Span span)
adapt.
-
-
-
Constructor Detail
-
BigtableResultScannerAdapter
public BigtableResultScannerAdapter(ResponseAdapter<T,Result> rowAdapter)
Constructor for BigtableResultScannerAdapter.- Parameters:
rowAdapter
- aResponseAdapter
object.
-
-
Method Detail
-
adapt
public ResultScanner adapt(ResultScanner<T> bigtableResultScanner, io.opencensus.trace.Span span)
adapt.- Parameters:
bigtableResultScanner
- aResultScanner
object.span
- A parentSpan
for the scan that needs to be closed when the scanning is complete. The span has an HBase specific tag, which needs to be handled by the adapter.- Returns:
- a
ResultScanner
object.
-
-