@InternalApi(value="For internal usage only - please use BulkMutation instead") public interface IBulkMutation extends AutoCloseable
RowMutationEntry
request into a single grpc *
request.
For internal use only - public for technical reasons.
See BigtableSession.createBulkMutation(BigtableTableName)
as a public
alternative.
Modifier and Type | Method and Description |
---|---|
com.google.api.core.ApiFuture<Void> |
add(com.google.cloud.bigtable.data.v2.models.RowMutationEntry rowMutation)
Adds a
RowMutationEntry to the underlying IBulkMutation mechanism. |
void |
close()
Closes this bulk Mutation and prevents from mutating any more elements
|
void |
flush()
Sends any outstanding RowMutationEntry and blocks until all requests are complete.
|
void |
sendUnsent()
Sends any outstanding entry, present in the current batch but doesn't wait for response.
|
com.google.api.core.ApiFuture<Void> add(com.google.cloud.bigtable.data.v2.models.RowMutationEntry rowMutation)
RowMutationEntry
to the underlying IBulkMutation mechanism.rowMutation
- The RowMutationEntry which holds row mutation details.ApiFuture
of type Void
will be set when request is successful
otherwise exception will be thrown.void sendUnsent()
void flush() throws InterruptedException
InterruptedException
void close() throws IOException
close
in interface AutoCloseable
IOException