TimestampFilterUtil (Cloud Bigtable HBase Client for Java 1.10.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

      • hbaseToBigtableTimeUnit

        public static long hbaseToBigtableTimeUnit(long timestamp)
        Converts an HBase timestamp in milliseconds to a Cloud Bigtable timestamp in Microseconds.
        Parameters:
        timestamp - a long value.
        Returns:
        a long value.
      • 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.


本頁內容對您是否有任何幫助?請提供意見:

傳送您對下列選項的寶貴意見...

這個網頁
Cloud Bigtable Documentation