@InternalApi(value="For internal usage only") public class BulkReadVeneerApi extends Object implements BulkReadWrapper
This class works with BatchExecutor
to enable bulk
reads from the hbase api.
This class is not thread safe. It must be used on a single thread.
For internal use only - public for technical reasons.
Modifier and Type | Method and Description |
---|---|
com.google.api.core.ApiFuture<org.apache.hadoop.hbase.client.Result> |
add(com.google.protobuf.ByteString rowKey,
com.google.cloud.bigtable.data.v2.models.Filters.Filter filter)
Adds a
rowKey to a batch read row request with an optional Filters.Filter . |
void |
close()
Closes the wrapper by preventing new elements from being added, then sending outstanding
elements.
|
void |
sendOutstanding()
Sends all remaining requests to the server.
|
public void close()
BulkReadWrapper
close
in interface BulkReadWrapper
close
in interface AutoCloseable
public com.google.api.core.ApiFuture<org.apache.hadoop.hbase.client.Result> add(com.google.protobuf.ByteString rowKey, @Nullable com.google.cloud.bigtable.data.v2.models.Filters.Filter filter)
BulkReadWrapper
rowKey
to a batch read row request with an optional Filters.Filter
. The
returned future will be resolved when the batch response is received.add
in interface BulkReadWrapper
public void sendOutstanding()
BulkReadWrapper
sendOutstanding
in interface BulkReadWrapper