com.google.cloud.bigtable.hbase.adapters.filters
Class BigtableWhileMatchResultScannerAdapter
- java.lang.Object
-
- com.google.cloud.bigtable.hbase.adapters.filters.BigtableWhileMatchResultScannerAdapter
-
public class BigtableWhileMatchResultScannerAdapter extends Object
Adapt a Bigtable ResultScanner to an HBase Result Scanner. Stops whenWhileMatchFilter
filters out the remaining rows.- Version:
- $Id: $Id
- Author:
- sduskis
-
-
Constructor Summary
Constructors Constructor and Description BigtableWhileMatchResultScannerAdapter(ResponseAdapter<FlatRow,Result> rowAdapter)
Constructor for BigtableWhileMatchResultScannerAdapter.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method and Description ResultScanner
adapt(ResultScanner<FlatRow> bigtableResultScanner, io.opencensus.trace.Span span)
adapt.static boolean
hasMatchingLabels(FlatRow row)
-
-
-
Constructor Detail
-
BigtableWhileMatchResultScannerAdapter
public BigtableWhileMatchResultScannerAdapter(ResponseAdapter<FlatRow,Result> rowAdapter)
Constructor for BigtableWhileMatchResultScannerAdapter.- Parameters:
rowAdapter
- aResponseAdapter
object.
-
-
Method Detail
-
adapt
public ResultScanner adapt(ResultScanner<FlatRow> 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.
-
-