HBaseRequestAdapter (Cloud Bigtable HBase Client for Java 1.12.0 API)

com.google.cloud.bigtable.hbase.adapters

Class HBaseRequestAdapter



  • public class HBaseRequestAdapter
    extends Object
    Adapts HBase Deletes, Gets, Scans, Puts, RowMutations, Appends and Increments to Bigtable requests.
    Version:
    $Id: $Id
    Author:
    sduskis
    • Method Detail

      • adapt

        public com.google.cloud.bigtable.data.v2.models.RowMutation adapt(Delete delete)
        adapt.
        Parameters:
        delete - a Delete object.
        Returns:
        a RowMutation object.
      • adapt

        @InternalApi
        public void adapt(Delete delete,
                                       com.google.cloud.bigtable.data.v2.models.MutationApi<?> mutationApi)
        adapt.
        Parameters:
        delete - a Delete object.
        mutationApi - a MutationApi object.
      • adaptEntry

        public com.google.cloud.bigtable.data.v2.models.RowMutation adaptEntry(Delete delete)
        adapt.
        Parameters:
        delete - a Delete object.
        Returns:
        a RowMutation object.
      • adapt

        public com.google.cloud.bigtable.data.v2.models.Query adapt(Get get)
        adapt.
        Parameters:
        get - a Get object.
        Returns:
        a Query object.
      • adapt

        public com.google.cloud.bigtable.data.v2.models.Query adapt(Scan scan)
        adapt.
        Parameters:
        scan - a Scan object.
        Returns:
        a Query object.
      • adapt

        public com.google.cloud.bigtable.data.v2.models.ReadModifyWriteRow adapt(Append append)
        adapt.
        Parameters:
        append - a Append object.
        Returns:
        a ReadModifyWriteRow object.
      • adapt

        public com.google.cloud.bigtable.data.v2.models.ReadModifyWriteRow adapt(Increment increment)
        adapt.
        Parameters:
        increment - a Increment object.
        Returns:
        a ReadModifyWriteRow object.
      • adapt

        public com.google.cloud.bigtable.data.v2.models.RowMutation adapt(Put put)
        adapt.
        Parameters:
        put - a Put object.
        Returns:
        a RowMutation object.
      • adapt

        @InternalApi
        public void adapt(Put put,
                                       com.google.cloud.bigtable.data.v2.models.MutationApi<?> mutationApi)
        adapt.
        Parameters:
        put - a Put object.
        mutationApi - a MutationApi object.
      • adaptEntry

        public com.google.cloud.bigtable.data.v2.models.RowMutation adaptEntry(Put put)
        adaptEntry.
        Parameters:
        put - a Put object.
        Returns:
        a RowMutation object.
      • adapt

        public com.google.cloud.bigtable.data.v2.models.RowMutation adapt(RowMutations mutations)
        adapt.
        Parameters:
        mutations - a RowMutations object.
        Returns:
        a RowMutation object.
      • adapt

        @InternalApi
        public void adapt(RowMutations mutations,
                                       com.google.cloud.bigtable.data.v2.models.MutationApi<?> mutationApi)
        adapt.
        Parameters:
        mutations - a RowMutations object.
        mutationApi - a MutationApi object.
      • adaptEntry

        public com.google.cloud.bigtable.data.v2.models.RowMutation adaptEntry(RowMutations mutations)
        adaptEntry.
        Parameters:
        mutations - a RowMutations object.
        Returns:
        a RowMutation object.
      • adapt

        public com.google.cloud.bigtable.data.v2.models.RowMutation adapt(Mutation mutation)
        adapt.
        Parameters:
        mutation - a Mutation object.
        Returns:
        a RowMutation object.
      • getTableName

        public TableName getTableName()
        Getter for the field tableName.
        Returns:
        a TableName object.
      • getTableNameString

        protected String getTableNameString()
        getTableNameString.
        Returns:
        a String object.