BulkRead (Cloud Bigtable HBase Client for Java 1.3.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 ListenableFuture<FlatRow> add(com.google.bigtable.v2.ReadRowsRequest request)
        Adds the key in the request to a batch read. The future will be resolved when the batch response is received.
        Parameters:
        request - a ReadRowsRequest with a single row key.
        Returns:
        a ListenableFuture 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()


Send feedback about...

Cloud Bigtable Documentation