MutationAdapter (Cloud Bigtable HBase Client for Java 1.3.0 API)

com.google.cloud.bigtable.hbase.adapters

Class MutationAdapter<T extends Row>

    • Constructor Detail

      • MutationAdapter

        public MutationAdapter()
    • Method Detail

      • getBytes

        protected static byte[] getBytes(ByteString bs)
      • adapt

        public final com.google.bigtable.v2.MutateRowRequest.Builder adapt(T operation)
        Adapt a single HBase Operation to a single Bigtable generated message.
        Specified by:
        adapt in interface OperationAdapter<T extends Row,com.google.bigtable.v2.MutateRowRequest.Builder>
        Parameters:
        operation - The HBase operation to convert.
        Returns:
        An equivalent Bigtable
      • toEntry

        public final com.google.bigtable.v2.MutateRowsRequest.Entry toEntry(T operation)
      • adaptMutations

        protected abstract Collection<com.google.bigtable.v2.Mutation> adaptMutations(T operation)
        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.
        Parameters:
        operation - The HBase Mutation to convert
        Returns:
        a Collection of Cloud Bigtable Mutation


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

Send feedback about...

Cloud Bigtable Documentation