TimestampFilterUtil (Cloud Bigtable HBase Client for Java 1.12.0 API)

com.google.cloud.bigtable.hbase.adapters.filters

Class TimestampFilterUtil

  • java.lang.Object
    • com.google.cloud.bigtable.hbase.adapters.filters.TimestampFilterUtil


  • public class TimestampFilterUtil
    extends Object
    Common utilities for Timestamp filters.
    • Constructor Detail

      • TimestampFilterUtil

        public TimestampFilterUtil()
    • Method Detail

      • hbaseToTimestampRangeFilter

        public static com.google.cloud.bigtable.data.v2.models.Filters.Filter hbaseToTimestampRangeFilter(long hbaseStartTimestamp,
                                                                                                          long hbaseEndTimestamp)
        Converts a [startMs, endMs) timestamps to a Cloud Bigtable [startMicros, endMicros) filter.
        Parameters:
        hbaseStartTimestamp - a long value.
        hbaseEndTimestamp - a long value.
        Returns:
        a Filters.Filter object.
      • toTimestampRangeFilter

        public static com.google.cloud.bigtable.data.v2.models.Filters.Filter toTimestampRangeFilter(long bigtableStartTimestamp,
                                                                                                     long bigtableEndTimestamp)
        Converts a [startMicros, endNons) timestamps to a Cloud Bigtable [startMicros, endMicros) filter.
        Parameters:
        bigtableStartTimestamp - a long value.
        bigtableEndTimestamp - a long value.
        Returns:
        a Filters.Filter object.