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 Summary
Constructors Constructor and Description TimestampFilterUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method and Description 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.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.
-
-
-
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.
-
-