Class MGetArgs
- java.lang.Object
-
- io.quarkus.redis.datasource.timeseries.MGetArgs
-
- All Implemented Interfaces:
RedisCommandExtraArguments
public class MGetArgs extends Object implements RedisCommandExtraArguments
Represents the extra arguments of thets.mget
command.
-
-
Constructor Summary
Constructors Constructor Description MGetArgs()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MGetArgs
latest()
With LATEST, TS.MGET also reports the compacted value of the latest possibly partial bucket, given that this bucket's start time falls within [fromTimestamp, toTimestamp].MGetArgs
selectedLabel(String label)
Add a label to the list of selected label.List<String>
toArgs()
MGetArgs
withLabels()
includes in the reply all label-value pairs representing metadata labels of the time series.-
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
-
-
-
-
Method Detail
-
latest
public MGetArgs latest()
With LATEST, TS.MGET 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.MGET does not report the latest possibly partial bucket. When a time series is not a compaction, LATEST is ignored.- Returns:
- the current
MGetArgs
-
withLabels
public MGetArgs withLabels()
includes in the reply all label-value pairs representing metadata labels of the time series. If WITHLABELS or SELECTED_LABELS are not specified, by default, an empty list is reported as label-value pairs.- Returns:
- the current
MGetArgs
-
selectedLabel
public MGetArgs selectedLabel(String label)
Add a label to the list of selected label. Returns a subset of the label-value pairs that represent metadata labels of the time series. Use when a large number of labels exists per series, but only the values of some of the labels are required. If WITHLABELS or SELECTED_LABELS are not specified, by default, an empty list is reported as label-value pairs.- Parameters:
label
- the label to select- Returns:
- the current
MGetArgs
-
toArgs
public List<String> toArgs()
- Specified by:
toArgs
in interfaceRedisCommandExtraArguments
- Returns:
- the list of arguments, encoded as a list of String.
-
-