BulkRead (Cloud Bigtable HBase Client for Java 1.6.0 API)


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.
    $Id: $Id
    • 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.
        request - a ReadRowsRequest with a single row key.
        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()

Was this page helpful? Let us know how we did:

Send feedback about...

Cloud Bigtable Documentation