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 the ts.mget command.
  • Constructor Details

    • MGetArgs

      public MGetArgs()
  • Method Details

    • 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<Object> toArgs()
      Specified by:
      toArgs in interface RedisCommandExtraArguments
      Returns:
      the list of arguments.