@InternalApi(value="For internal usage only") public class BulkMutationVeneerApi extends Object implements BulkMutationWrapper
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 batch for mutations. |
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.
|
public com.google.api.core.ApiFuture<Void> add(com.google.cloud.bigtable.data.v2.models.RowMutationEntry rowMutation)
RowMutationEntry
to the underlying batch for mutations.add
in interface BulkMutationWrapper
public void sendUnsent()
sendUnsent
in interface BulkMutationWrapper
public void flush()
flush
in interface BulkMutationWrapper
public void close() throws IOException
BulkMutationWrapper
close
in interface BulkMutationWrapper
close
in interface AutoCloseable
IOException