BulkOptions (Cloud Bigtable HBase Client for Java 0.9.3-SNAPSHOT API)

com.google.cloud.bigtable.config

Class BulkOptions

  • All Implemented Interfaces:
    Serializable


    public class BulkOptions
    extends Object
    implements Serializable
    An immutable class providing access to bulk related configuration options for Bigtable.
    Version:
    $Id: $Id
    Author:
    sduskis
    See Also:
    Serialized Form
    • Field Detail

      • BIGTABLE_ASYNC_MUTATOR_COUNT_DEFAULT

        public static final int BIGTABLE_ASYNC_MUTATOR_COUNT_DEFAULT
        Constant BIGTABLE_ASYNC_MUTATOR_COUNT_DEFAULT=2
        See Also:
        Constant Field Values
      • BIGTABLE_BULK_MAX_REQUEST_SIZE_BYTES_DEFAULT

        public static final long BIGTABLE_BULK_MAX_REQUEST_SIZE_BYTES_DEFAULT
        This describes the maximum size a bulk mutation RPC should be before sending it to the server and starting the next bulk call. Defaults to 1 MB.
        See Also:
        Constant Field Values
      • BIGTABLE_BULK_MAX_ROW_KEY_COUNT_DEFAULT

        public static final int BIGTABLE_BULK_MAX_ROW_KEY_COUNT_DEFAULT
        This describes the maximum number of individual mutation requests to bundle in a single bulk mutation RPC before sending it to the server and starting the next bulk call. The server has a maximum of 100,000. Since RPCs can be retried, we should limit the number of keys to 100 by default so we don't keep retrying larger batches.
        See Also:
        Constant Field Values
      • BIGTABLE_MAX_INFLIGHT_RPCS_PER_CHANNEL_DEFAULT

        public static final int BIGTABLE_MAX_INFLIGHT_RPCS_PER_CHANNEL_DEFAULT
        Constant BIGTABLE_MAX_INFLIGHT_RPCS_PER_CHANNEL_DEFAULT=50
        See Also:
        Constant Field Values
      • BIGTABLE_MAX_MEMORY_DEFAULT

        public static final long BIGTABLE_MAX_MEMORY_DEFAULT
        Constant BIGTABLE_MAX_MEMORY_DEFAULT=(long) Math.min(1 << 30, (Runtime.getRuntime().maxMemory() * 0.1d))
    • Method Detail

      • getAsyncMutatorCount

        public int getAsyncMutatorCount()

        Getter for the field asyncMutatorCount.

        Returns:
        a int.
      • useBulkApi

        public boolean useBulkApi()

        useBulkApi.

        Returns:
        a boolean.
      • getBulkMaxRowKeyCount

        public int getBulkMaxRowKeyCount()

        Getter for the field bulkMaxRowKeyCount.

        Returns:
        a int.
      • getBulkMaxRequestSize

        public long getBulkMaxRequestSize()

        Getter for the field bulkMaxRequestSize.

        Returns:
        a long.
      • getMaxInflightRpcs

        public int getMaxInflightRpcs()

        Getter for the field maxInflightRpcs.

        Returns:
        a int.
      • getMaxMemory

        public long getMaxMemory()

        Getter for the field maxMemory.

        Returns:
        a long.


Send feedback about...

Cloud Bigtable Documentation