BulkMutationGCJClient (Cloud Bigtable HBase Client for Java 1.12.0 API)


Class BulkMutationGCJClient

  • All Implemented Interfaces:

    public class BulkMutationGCJClient
    extends Object
    implements IBulkMutation
    This class is meant to replicate existing BulkMutation while translating calls to Google-Cloud-Java's BulkMutationBatcher api.
    • Constructor Detail

      • BulkMutationGCJClient

        public BulkMutationGCJClient(com.google.cloud.bigtable.data.v2.models.BulkMutationBatcher bulkMutateBatcher)
    • Method Detail

      • add

        public com.google.api.core.ApiFuture<Void> add(com.google.cloud.bigtable.data.v2.models.RowMutation rowMutation)
        Adds a RowMutation to the underlying IBulkMutation mechanism.
        Specified by:
        add in interface IBulkMutation
        rowMutation - The RowMutation to add.
        a ApiFuture of type Void will be set when request is successful otherwise exception will be thrown.
      • sendUnsent

        public void sendUnsent()
        Sends any outstanding RowMutations, present in the current batch.
        Specified by:
        sendUnsent in interface IBulkMutation
      • flush

        public void flush()
        Sends any outstanding RowMutation and wait until all requests are complete.
        Specified by:
        flush in interface IBulkMutation
      • isFlushed

        public boolean isFlushed()
        Specified by:
        isFlushed in interface IBulkMutation
        false if there is any outstanding RowMutation that still needs to be sent.