Class TSRangeParams

java.lang.Object
redis.clients.jedis.timeseries.TSRangeParams
All Implemented Interfaces:
IParams

public class TSRangeParams extends Object implements IParams
Represents optional arguments of TS.RANGE and TS.REVRANGE commands.
  • Field Details

    • fromTimestamp

      private Long fromTimestamp
    • toTimestamp

      private Long toTimestamp
    • latest

      private boolean latest
    • filterByTimestamps

      private long[] filterByTimestamps
    • filterByValues

      private double[] filterByValues
    • count

      private Integer count
    • align

      private byte[] align
    • aggregationType

      private AggregationType aggregationType
    • bucketDuration

      private long bucketDuration
    • bucketTimestamp

      private byte[] bucketTimestamp
    • empty

      private boolean empty
  • Constructor Details

    • TSRangeParams

      public TSRangeParams(long fromTimestamp, long toTimestamp)
    • TSRangeParams

      public TSRangeParams()
  • Method Details

    • rangeParams

      public static TSRangeParams rangeParams(long fromTimestamp, long toTimestamp)
    • rangeParams

      public static TSRangeParams rangeParams()
    • fromTimestamp

      public TSRangeParams fromTimestamp(long fromTimestamp)
    • toTimestamp

      public TSRangeParams toTimestamp(long toTimestamp)
    • latest

      public TSRangeParams latest()
    • filterByTS

      public TSRangeParams filterByTS(long... timestamps)
    • filterByValues

      public TSRangeParams filterByValues(double min, double max)
    • count

      public TSRangeParams count(int count)
    • align

      private TSRangeParams align(byte[] raw)
    • align

      public TSRangeParams align(long timestamp)
      This requires AGGREGATION.
    • alignStart

      public TSRangeParams alignStart()
      This requires AGGREGATION.
    • alignEnd

      public TSRangeParams alignEnd()
      This requires AGGREGATION.
    • aggregation

      public TSRangeParams aggregation(AggregationType aggregationType, long bucketDuration)
    • bucketTimestamp

      public TSRangeParams bucketTimestamp(String bucketTimestamp)
      This requires AGGREGATION.
    • bucketTimestampLow

      public TSRangeParams bucketTimestampLow()
      This requires AGGREGATION.
    • bucketTimestampHigh

      public TSRangeParams bucketTimestampHigh()
      This requires AGGREGATION.
    • bucketTimestampMid

      public TSRangeParams bucketTimestampMid()
      This requires AGGREGATION.
    • empty

      public TSRangeParams empty()
      This requires AGGREGATION.
    • addParams

      public void addParams(CommandArguments args)
      Specified by:
      addParams in interface IParams