Class RangeArgs
java.lang.Object
io.quarkus.redis.datasource.timeseries.RangeArgs
- All Implemented Interfaces:
RedisCommandExtraArguments
Represent the
TS.RANGE
and TS.REVRANGE
commands optional parameters.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaggregation
(Aggregation aggregation, Duration bucketDuration) Aggregates results into time buckets.align
(long timestamp) Set the time bucket alignment control for AGGREGATION.Set the time bucket alignment control for AGGREGATION to the query end interval time (toTimestamp).Set the time bucket alignment control for AGGREGATION to the query start interval time (fromTimestamp).Controls how bucket timestamps are reported.count
(int count) Limits the number of returned samples.empty()
When specified, reports aggregations also for empty buckets.filterByTimestamp
(long... timestamps) Filters samples by a list of specific timestamps.filterByValue
(double min, double max) Filters samples by minimum and maximum values.latest()
Used when a time series is a compaction.toArgs()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.quarkus.redis.datasource.RedisCommandExtraArguments
toArgs
-
Constructor Details
-
RangeArgs
public RangeArgs()
-
-
Method Details
-
latest
Used when a time series is a compaction. With LATEST, TS.MRANGE also reports the compacted value of the latest possibly partial bucket, given that this bucket's start time falls within [fromTimestamp, toTimestamp]. Without LATEST, TS.MRANGE does not report the latest possibly partial bucket. When a time series is not a compaction, LATEST is ignored.- Returns:
- the current
MRangeArgs
-
filterByTimestamp
Filters samples by a list of specific timestamps. A sample passes the filter if its exact timestamp is specified and falls within [fromTimestamp, toTimestamp].- Parameters:
timestamps
- the timestamps- Returns:
- the current
MRangeArgs
-
filterByValue
Filters samples by minimum and maximum values.- Parameters:
min
- the min value of the samplemax
- the max value of the sample- Returns:
- the current
MRangeArgs
-
count
Limits the number of returned samples.- Parameters:
count
- the max number of samples to return- Returns:
- the current
MRangeArgs
-
align
Set the time bucket alignment control for AGGREGATION. It controls the time bucket timestamps by changing the reference timestamp on which a bucket is defined.- Parameters:
timestamp
- the timestamp- Returns:
- the current
MRangeArgs
-
alignUsingRangeStart
Set the time bucket alignment control for AGGREGATION to the query start interval time (fromTimestamp). It controls the time bucket timestamps by changing the reference timestamp on which a bucket is defined.- Returns:
- the current
MRangeArgs
-
alignUsingRangeEnd
Set the time bucket alignment control for AGGREGATION to the query end interval time (toTimestamp). It controls the time bucket timestamps by changing the reference timestamp on which a bucket is defined.- Returns:
- the current
MRangeArgs
-
aggregation
Aggregates results into time buckets.- Parameters:
aggregation
- the aggregation function, must not benull
bucketDuration
- the duration of each bucket, must not benull
- Returns:
- the current
MRangeArgs
-
bucketTimestamp
Controls how bucket timestamps are reported.- Parameters:
ts
- the bucket timestamp configuration, must not benull
- Returns:
- the current
MRangeArgs
-
empty
When specified, reports aggregations also for empty buckets.- Returns:
- the current
MRangeArgs
-
toArgs
- Specified by:
toArgs
in interfaceRedisCommandExtraArguments
- Returns:
- the list of arguments.
-