@InternalApi(value="For internal usage only") public class DataClientVeneerApi extends Object implements DataClientWrapper
| Modifier and Type | Method and Description |
|---|---|
com.google.api.core.ApiFuture<Boolean> |
checkAndMutateRowAsync(com.google.cloud.bigtable.data.v2.models.ConditionalRowMutation conditionalRowMutation)
Mutate a row atomically dependent on a precondition.
|
void |
close() |
BulkMutationWrapper |
createBulkMutation(String tableId)
Creates instance of bulkMutation with specified table ID.
|
BulkMutationWrapper |
createBulkMutation(String tableId,
long closeTimeoutMilliseconds) |
BulkReadWrapper |
createBulkRead(String tableId)
Creates
BulkReadWrapper with specified table ID. |
com.google.api.core.ApiFuture<Void> |
mutateRowAsync(com.google.cloud.bigtable.data.v2.models.RowMutation rowMutation)
Mutate a row atomically.
|
com.google.api.core.ApiFuture<org.apache.hadoop.hbase.client.Result> |
readModifyWriteRowAsync(com.google.cloud.bigtable.data.v2.models.ReadModifyWriteRow readModifyWriteRow)
Perform an atomic read-modify-write operation on a row.
|
com.google.api.core.ApiFuture<org.apache.hadoop.hbase.client.Result> |
readRowAsync(String tableId,
com.google.protobuf.ByteString rowKey,
com.google.cloud.bigtable.data.v2.models.Filters.Filter filter)
Reads a single row based on filter, If row not found then returns an empty
Result. |
org.apache.hadoop.hbase.client.ResultScanner |
readRows(com.google.cloud.bigtable.data.v2.models.Query request)
Perform a scan over
Results, in key order. |
com.google.api.core.ApiFuture<List<org.apache.hadoop.hbase.client.Result>> |
readRowsAsync(com.google.cloud.bigtable.data.v2.models.Query request)
Read multiple
Results into an in-memory list, in key order. |
void |
readRowsAsync(com.google.cloud.bigtable.data.v2.models.Query request,
io.grpc.stub.StreamObserver<org.apache.hadoop.hbase.client.Result> observer)
Read
Result asynchronously, and pass them to a stream observer to be processed. |
com.google.api.core.ApiFuture<List<com.google.cloud.bigtable.data.v2.models.KeyOffset>> |
sampleRowKeysAsync(String tableId)
Sample row keys from a table, returning a Future that will complete when the sampling has
completed.
|
public BulkMutationWrapper createBulkMutation(String tableId)
DataClientWrappercreateBulkMutation in interface DataClientWrapperpublic BulkMutationWrapper createBulkMutation(String tableId, long closeTimeoutMilliseconds)
createBulkMutation in interface DataClientWrapperpublic BulkReadWrapper createBulkRead(String tableId)
DataClientWrapperBulkReadWrapper with specified table ID.
The BulkRead instance will be scoped to a single user visible operation. The operation timeout (which is configured in the settings) is started from the time the createBulkRead is invoked.
try (BulkReadWrapper batch = wrapper.createBulkRead(tableId)) {
batch.add(key1, filter1);
batch.add(key2, filter2);
}
createBulkRead in interface DataClientWrapperpublic com.google.api.core.ApiFuture<Void> mutateRowAsync(com.google.cloud.bigtable.data.v2.models.RowMutation rowMutation)
DataClientWrappermutateRowAsync in interface DataClientWrapperpublic com.google.api.core.ApiFuture<org.apache.hadoop.hbase.client.Result> readModifyWriteRowAsync(com.google.cloud.bigtable.data.v2.models.ReadModifyWriteRow readModifyWriteRow)
DataClientWrapperreadModifyWriteRowAsync in interface DataClientWrapperpublic com.google.api.core.ApiFuture<Boolean> checkAndMutateRowAsync(com.google.cloud.bigtable.data.v2.models.ConditionalRowMutation conditionalRowMutation)
DataClientWrappercheckAndMutateRowAsync in interface DataClientWrapperpublic com.google.api.core.ApiFuture<List<com.google.cloud.bigtable.data.v2.models.KeyOffset>> sampleRowKeysAsync(String tableId)
DataClientWrappersampleRowKeysAsync in interface DataClientWrapperpublic com.google.api.core.ApiFuture<org.apache.hadoop.hbase.client.Result> readRowAsync(String tableId, com.google.protobuf.ByteString rowKey, @Nullable com.google.cloud.bigtable.data.v2.models.Filters.Filter filter)
DataClientWrapperResult.readRowAsync in interface DataClientWrapperpublic org.apache.hadoop.hbase.client.ResultScanner readRows(com.google.cloud.bigtable.data.v2.models.Query request)
DataClientWrapperResults, in key order.readRows in interface DataClientWrapperpublic com.google.api.core.ApiFuture<List<org.apache.hadoop.hbase.client.Result>> readRowsAsync(com.google.cloud.bigtable.data.v2.models.Query request)
DataClientWrapperResults into an in-memory list, in key order.readRowsAsync in interface DataClientWrapperpublic void readRowsAsync(com.google.cloud.bigtable.data.v2.models.Query request,
io.grpc.stub.StreamObserver<org.apache.hadoop.hbase.client.Result> observer)
DataClientWrapperResult asynchronously, and pass them to a stream observer to be processed.readRowsAsync in interface DataClientWrapperpublic void close()
close in interface DataClientWrapperclose in interface AutoCloseable