PutAdapter (Cloud Bigtable HBase Client for Java 1.12.0 API)

com.google.cloud.bigtable.hbase.adapters

Class PutAdapter

  • All Implemented Interfaces:
    OperationAdapter<Put,com.google.cloud.bigtable.data.v2.models.MutationApi<?>>


    public class PutAdapter
    extends MutationAdapter<Put>
    Adapt an HBase Put Operation into a Google Cloud Java MutationApi.
    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

      • adapt

        public void adapt(Put operation,
                          com.google.cloud.bigtable.data.v2.models.MutationApi<?> mutation)
        Converts an HBase Row which represents a set of changes to a single row from an HBase perspective to a Google Cloud Java MutationApi which represent the set of changes.
        Specified by:
        adapt in interface OperationAdapter<Put,com.google.cloud.bigtable.data.v2.models.MutationApi<?>>
        Specified by:
        adapt in class MutationAdapter<Put>
        Parameters:
        operation - The HBase Row to convert
        mutation - The model MutationApi