Class TimeSeriesRange
java.lang.Object
io.quarkus.redis.datasource.timeseries.TimeSeriesRange
Represent the range used in the
TS.MRANGE and TS.MREVRANGE commands.-
Method Summary
Modifier and TypeMethodDescriptionstatic TimeSeriesRangefromEarliestToTimestamp(long end) Creates a time series range going from the earliest sample of the series to the given timestampstatic TimeSeriesRangeCreates a time series range using the earliest sample and latest sample of the time series as boundstatic TimeSeriesRangefromTimestamps(long begin, long end) Creates a time series range using the given timestampsstatic TimeSeriesRangefromTimestampToLatest(long begin) Creates a time series range going from the given timestamp to the latest sample of the seriestoArgs()
-
Method Details
-
fromTimestamps
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
Creates a time series range using the earliest sample and latest sample of the time series as bound- Returns:
- the time series range
-
fromEarliestToTimestamp
Creates a time series range going from the earliest sample of the series to the given timestamp- Returns:
- the time series range
-
fromTimestampToLatest
Creates a time series range going from the given timestamp to the latest sample of the series- Returns:
- the time series range
-
toArgs
-