PutAdapter (Cloud Bigtable HBase Client for Java 1.6.0 API)

com.google.cloud.bigtable.hbase.adapters

Class PutAdapter

  • All Implemented Interfaces:
    OperationAdapter<Put,com.google.bigtable.v2.MutateRowRequest.Builder>


    public class PutAdapter
    extends MutationAdapter<Put>
    Adapt an HBase Put Operation into a Cloud Bigtable MutateRowRequest.Builder or MutateRowsRequest.Entry.
    Version:
    $Id: $Id
    Author:
    sduskis
    • Constructor Detail

      • PutAdapter

        public PutAdapter(int maxKeyValueSize)

        Constructor for PutAdapter.

        Parameters:
        maxKeyValueSize - a int.
      • PutAdapter

        public PutAdapter(int maxKeyValueSize,
                          boolean setClientTimestamp)

        Constructor for PutAdapter.

        Parameters:
        maxKeyValueSize - a int.
        setClientTimestamp - a boolean.
    • Method Detail

      • adaptMutations

        protected Collection<com.google.bigtable.v2.Mutation> adaptMutations(Put operation)
        Description copied from class: MutationAdapter
        Converts an HBase Mutation which represents a set of changes to a single row from an HBase perspective to a collection of Cloud Bigtable Mutation which represent the set of changes. The name "Mutation" represents a more granular change in Bigtable than an HBase "Mutation"; An HBase Cell is akin to a Cloud Bigtable Mutation. A CloudBigtable MutateRowRequest or MutateRowsRequest.Entry is akin to an HBase Mutation.
        Specified by:
        adaptMutations in class MutationAdapter<Put>
        Parameters:
        operation - The HBase Mutation to convert
        Returns:
        a Collection of Cloud Bigtable Mutation
      • adapt

        public Put adapt(com.google.bigtable.v2.MutateRowRequest request)
                  throws IOException

        adapt.

        Parameters:
        request - a MutateRowRequest object.
        Returns:
        a Put object.
        Throws:
        IOException - if any.


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

Send feedback about...

Cloud Bigtable Documentation