BulkRead (Cloud Bigtable HBase Client for Java 1.12.0 API)

com.google.cloud.bigtable.grpc.async

Class BulkRead



  • public class BulkRead
    extends Object
    This class combines a collection of ReadRowsRequests with a single row key into a single ReadRowsRequest with a RowSet which will result in fewer round trips. This class is not thread safe, and requires calling classes to make it thread safe.
    Version:
    $Id: $Id
    Author:
    sduskis
    • Field Detail

      • LOG

        protected static final Logger LOG
        Constant LOG
    • Method Detail

      • add

        public com.google.api.core.ApiFuture<FlatRow> add(com.google.cloud.bigtable.data.v2.models.Query query)
        Adds the key in the request to a batch read. The future will be resolved when the batch response is received.
        Parameters:
        query - a Query with a single row key.
        Returns:
        a ApiFuture that will be populated with the FlatRow that corresponds to the request
      • flush

        public void flush()
        Sends all remaining requests to the server. This method does not wait for the method to complete.
      • getBatchSizes

        public int getBatchSizes()