MutationAdapter (Cloud Bigtable HBase Client for Java 1.1.2 API)

Class MutationAdapter<T extends Row>

    • Constructor Detail

      • MutationAdapter

        public MutationAdapter()
    • Method Detail

      • getBytes

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

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

        public final toEntry(T operation)
      • adaptMutations

        protected abstract Collection<> 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.
        operation - The HBase Mutation to convert
        a Collection of Cloud Bigtable Mutation