@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()
BulkReadWrapperclose in interface BulkReadWrapperclose in interface AutoCloseablepublic 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)
BulkReadWrapperrowKey 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 BulkReadWrapperpublic void sendOutstanding()
BulkReadWrappersendOutstanding in interface BulkReadWrapper