CellDeduplicationHelper (Cloud Bigtable HBase Client for Java 1.12.0 API)

com.google.cloud.bigtable.hbase.adapters

Class CellDeduplicationHelper

  • java.lang.Object
    • com.google.cloud.bigtable.hbase.adapters.CellDeduplicationHelper


  • public class CellDeduplicationHelper
    extends Object
    Helper class to deduplicate Cells in a mutation.

    This is used primarily to apply client-side Increment and Append deduplication logic.

    Version:
    $Id: $Id
    Author:
    sduskis
    • Constructor Detail

      • CellDeduplicationHelper

        public CellDeduplicationHelper()
    • Method Detail

      • deduplicateFamily

        public static List<Cell> deduplicateFamily(Mutation mutation,
                                                   byte[] family)
        Given a Mutation and a family with potentially duplicate cell family:qualifier combinations, remove all entries except for the last for that family:qualifier pair.
        Parameters:
        mutation - a Mutation object.
        family - an array of byte.
        Returns:
        a List object.