Class TimeSeriesRange

java.lang.Object
io.quarkus.redis.datasource.timeseries.TimeSeriesRange

public class TimeSeriesRange extends Object
Represent the range used in the TS.MRANGE and TS.MREVRANGE commands.
  • Method Details

    • fromTimestamps

      public static TimeSeriesRange fromTimestamps(long begin, long end)
      Creates a time series range using the given timestamps
      Parameters:
      begin - the beginning of the range
      end - the end of the range
      Returns:
      the time series range
    • fromTimeSeries

      public static TimeSeriesRange fromTimeSeries()
      Creates a time series range using the earliest sample and latest sample of the time series as bound
      Returns:
      the time series range
    • fromEarliestToTimestamp

      public static TimeSeriesRange fromEarliestToTimestamp(long end)
      Creates a time series range going from the earliest sample of the series to the given timestamp
      Returns:
      the time series range
    • fromTimestampToLatest

      public static TimeSeriesRange fromTimestampToLatest(long begin)
      Creates a time series range going from the given timestamp to the latest sample of the series
      Returns:
      the time series range
    • toArgs

      public List<String> toArgs()