Class TimeSeriesRange
- java.lang.Object
-
- io.quarkus.redis.datasource.timeseries.TimeSeriesRange
-
public class TimeSeriesRange extends Object
Represent the range used in theTS.MRANGE
andTS.MREVRANGE
commands.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static TimeSeriesRange
fromEarliestToTimestamp(long end)
Creates a time series range going from the earliest sample of the series to the given timestampstatic TimeSeriesRange
fromTimeSeries()
Creates a time series range using the earliest sample and latest sample of the time series as boundstatic TimeSeriesRange
fromTimestamps(long begin, long end)
Creates a time series range using the given timestampsstatic TimeSeriesRange
fromTimestampToLatest(long begin)
Creates a time series range going from the given timestamp to the latest sample of the seriesList<String>
toArgs()
-
-
-
Method Detail
-
fromTimestamps
public static TimeSeriesRange fromTimestamps(long begin, long end)
Creates a time series range using the given timestamps- Parameters:
begin
- the beginning of the rangeend
- 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
-
-