Class ReactiveTransactionalTimeSeriesCommandsImpl<K>

    • Method Detail

      • tsCreate

        public io.smallrye.mutiny.Uni<Void> tsCreate​(K key,
                                                     CreateArgs args)
        Description copied from interface: ReactiveTransactionalTimeSeriesCommands
        Execute the command TS.CREATE. Summary: Create a new time series Group: time series
        Specified by:
        tsCreate in interface ReactiveTransactionalTimeSeriesCommands<K>
        Parameters:
        key - the key name for the time series must not be null
        args - the creation arguments.
        Returns:
        A Uni emitting null when the command has been enqueued successfully in the transaction, a failure otherwise. In the case of failure, the transaction is discarded.
      • tsCreate

        public io.smallrye.mutiny.Uni<Void> tsCreate​(K key)
        Description copied from interface: ReactiveTransactionalTimeSeriesCommands
        Execute the command TS.CREATE. Summary: Create a new time series Group: time series
        Specified by:
        tsCreate in interface ReactiveTransactionalTimeSeriesCommands<K>
        Parameters:
        key - the key name for the time series must not be null
        Returns:
        A Uni emitting null when the command has been enqueued successfully in the transaction, a failure otherwise. In the case of failure, the transaction is discarded.
      • tsAdd

        public io.smallrye.mutiny.Uni<Void> tsAdd​(K key,
                                                  long timestamp,
                                                  double value,
                                                  AddArgs args)
        Description copied from interface: ReactiveTransactionalTimeSeriesCommands
        Execute the command TS.ADD. Summary: Append a sample to a time series Group: time series
        Specified by:
        tsAdd in interface ReactiveTransactionalTimeSeriesCommands<K>
        Parameters:
        key - the key name for the time series must not be null
        timestamp - the (long) UNIX sample timestamp in milliseconds or -1 to set the timestamp according to the server clock.
        value - the numeric data value of the sample.
        args - the creation arguments.
        Returns:
        A Uni emitting null when the command has been enqueued successfully in the transaction, a failure otherwise. In the case of failure, the transaction is discarded.
      • tsAdd

        public io.smallrye.mutiny.Uni<Void> tsAdd​(K key,
                                                  long timestamp,
                                                  double value)
        Description copied from interface: ReactiveTransactionalTimeSeriesCommands
        Execute the command TS.ADD. Summary: Append a sample to a time series Group: time series
        Specified by:
        tsAdd in interface ReactiveTransactionalTimeSeriesCommands<K>
        Parameters:
        key - the key name for the time series, must not be null
        timestamp - the (long) UNIX sample timestamp in milliseconds
        value - the numeric data value of the sample
        Returns:
        A Uni emitting null when the command has been enqueued successfully in the transaction, a failure otherwise. In the case of failure, the transaction is discarded.
      • tsAlter

        public io.smallrye.mutiny.Uni<Void> tsAlter​(K key,
                                                    AlterArgs args)
        Description copied from interface: ReactiveTransactionalTimeSeriesCommands
        Execute the command TS.ALTER. Summary: Update the retention, chunk size, duplicate policy, and labels of an existing time series Group: time series
        Specified by:
        tsAlter in interface ReactiveTransactionalTimeSeriesCommands<K>
        Parameters:
        key - the key name for the time series, must not be null
        args - the alter parameters, must not be null
        Returns:
        A Uni emitting null when the command has been enqueued successfully in the transaction, a failure otherwise. In the case of failure, the transaction is discarded.
      • tsCreateRule

        public io.smallrye.mutiny.Uni<Void> tsCreateRule​(K key,
                                                         K destKey,
                                                         Aggregation aggregation,
                                                         Duration bucketDuration)
        Description copied from interface: ReactiveTransactionalTimeSeriesCommands
        Execute the command TS.CREATERULE. Summary: Create a compaction rule Group: time series
        Specified by:
        tsCreateRule in interface ReactiveTransactionalTimeSeriesCommands<K>
        Parameters:
        key - the key name for the time series, must not be null
        destKey - the key name for destination (compacted) time series. It must be created before TS.CREATERULE is called. Must not be null.
        aggregation - the aggregation function, must not be null
        bucketDuration - the duration of each bucket, must not be null
        Returns:
        A Uni emitting null when the command has been enqueued successfully in the transaction, a failure otherwise. In the case of failure, the transaction is discarded.
      • tsCreateRule

        public io.smallrye.mutiny.Uni<Void> tsCreateRule​(K key,
                                                         K destKey,
                                                         Aggregation aggregation,
                                                         Duration bucketDuration,
                                                         long alignTimestamp)
        Description copied from interface: ReactiveTransactionalTimeSeriesCommands
        Execute the command TS.CREATERULE. Summary: Create a compaction rule Group: time series
        Specified by:
        tsCreateRule in interface ReactiveTransactionalTimeSeriesCommands<K>
        Parameters:
        key - the key name for the time series, must not be null
        destKey - the key name for destination (compacted) time series. It must be created before TS.CREATERULE is called. Must not be null.
        aggregation - the aggregation function, must not be null
        bucketDuration - the duration of each bucket, must not be null
        alignTimestamp - when set, ensures that there is a bucket that starts exactly at alignTimestamp and aligns all other buckets accordingly. It is expressed in milliseconds. The default value is 0 aligned with the epoch. For example, if bucketDuration is 24 hours (24 * 3600 * 1000), setting alignTimestamp to 6 hours after the epoch (6 * 3600 * 1000) ensures that each bucket’s timeframe is [06:00 .. 06:00).
        Returns:
        A Uni emitting null when the command has been enqueued successfully in the transaction, a failure otherwise. In the case of failure, the transaction is discarded.
      • tsDecrBy

        public io.smallrye.mutiny.Uni<Void> tsDecrBy​(K key,
                                                     double value)
        Description copied from interface: ReactiveTransactionalTimeSeriesCommands
        Execute the command TS.DECRBY. Summary: Decrease the value of the sample with the maximum existing timestamp, or create a new sample with a value equal to the value of the sample with the maximum existing timestamp with a given decrement Group: time series

        Specified by:
        tsDecrBy in interface ReactiveTransactionalTimeSeriesCommands<K>
        Parameters:
        key - the key name for the time series. must not be null
        value - the numeric data value of the sample, must not be null
        Returns:
        A Uni emitting null when the command has been enqueued successfully in the transaction, a failure otherwise. In the case of failure, the transaction is discarded.
      • tsDecrBy

        public io.smallrye.mutiny.Uni<Void> tsDecrBy​(K key,
                                                     double value,
                                                     IncrementArgs args)
        Description copied from interface: ReactiveTransactionalTimeSeriesCommands
        Execute the command TS.DECRBY. Summary: Decrease the value of the sample with the maximum existing timestamp, or create a new sample with a value equal to the value of the sample with the maximum existing timestamp with a given decrement Group: time series

        Specified by:
        tsDecrBy in interface ReactiveTransactionalTimeSeriesCommands<K>
        Parameters:
        key - the key name for the time series. must not be null
        value - the numeric data value of the sample, must not be null
        args - the extra command parameters
        Returns:
        A Uni emitting null when the command has been enqueued successfully in the transaction, a failure otherwise. In the case of failure, the transaction is discarded.
      • tsDel

        public io.smallrye.mutiny.Uni<Void> tsDel​(K key,
                                                  long fromTimestamp,
                                                  long toTimestamp)
        Description copied from interface: ReactiveTransactionalTimeSeriesCommands
        Execute the command TS.DEL. Summary: Delete all samples between two timestamps for a given time series Group: time series

        The given timestamp interval is closed (inclusive), meaning that samples whose timestamp equals the fromTimestamp or toTimestamp are also deleted.

        Specified by:
        tsDel in interface ReactiveTransactionalTimeSeriesCommands<K>
        Parameters:
        key - the key name for the time series. must not be null
        fromTimestamp - the start timestamp for the range deletion.
        toTimestamp - the end timestamp for the range deletion.
        Returns:
        A Uni emitting null when the command has been enqueued successfully in the transaction, a failure otherwise. In the case of failure, the transaction is discarded.
      • tsDeleteRule

        public io.smallrye.mutiny.Uni<Void> tsDeleteRule​(K key,
                                                         K destKey)
        Description copied from interface: ReactiveTransactionalTimeSeriesCommands
        Execute the command TS.DELETERULE. Summary: Delete a compaction rule Group: time series

        Specified by:
        tsDeleteRule in interface ReactiveTransactionalTimeSeriesCommands<K>
        Parameters:
        key - the key name for the time series. must not be null
        destKey - the key name for destination (compacted) time series. Note that the command does not delete the compacted series. Must not be null
        Returns:
        A Uni emitting null when the command has been enqueued successfully in the transaction, a failure otherwise. In the case of failure, the transaction is discarded.
      • tsGet

        public io.smallrye.mutiny.Uni<Void> tsGet​(K key)
        Description copied from interface: ReactiveTransactionalTimeSeriesCommands
        Execute the command TS.GET. Summary: Get the last sample Group: time series

        Specified by:
        tsGet in interface ReactiveTransactionalTimeSeriesCommands<K>
        Parameters:
        key - the key name for the time series. must not be null
        Returns:
        A Uni emitting null when the command has been enqueued successfully in the transaction, a failure otherwise. In the case of failure, the transaction is discarded.
      • tsGet

        public io.smallrye.mutiny.Uni<Void> tsGet​(K key,
                                                  boolean latest)
        Description copied from interface: ReactiveTransactionalTimeSeriesCommands
        Execute the command TS.GET. Summary: Get the last sample Group: time series

        Specified by:
        tsGet in interface ReactiveTransactionalTimeSeriesCommands<K>
        Parameters:
        key - the key name for the time series. must not be null
        latest - used when a time series is a compaction. With LATEST set to true, 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:
        A Uni emitting null when the command has been enqueued successfully in the transaction, a failure otherwise. In the case of failure, the transaction is discarded.
      • tsIncrBy

        public io.smallrye.mutiny.Uni<Void> tsIncrBy​(K key,
                                                     double value)
        Description copied from interface: ReactiveTransactionalTimeSeriesCommands
        Execute the command TS.INCRBY. Summary: Increase the value of the sample with the maximum existing timestamp, or create a new sample with a value equal to the value of the sample with the maximum existing timestamp with a given increment. Group: time series

        Specified by:
        tsIncrBy in interface ReactiveTransactionalTimeSeriesCommands<K>
        Parameters:
        key - the key name for the time series. must not be null
        value - the numeric data value of the sample, must not be null
        Returns:
        A Uni emitting null when the command has been enqueued successfully in the transaction, a failure otherwise. In the case of failure, the transaction is discarded.
      • tsIncrBy

        public io.smallrye.mutiny.Uni<Void> tsIncrBy​(K key,
                                                     double value,
                                                     IncrementArgs args)
        Description copied from interface: ReactiveTransactionalTimeSeriesCommands
        Execute the command TS.INCRBY. Summary: Increase the value of the sample with the maximum existing timestamp, or create a new sample with a value equal to the value of the sample with the maximum existing timestamp with a given increment. Group: time series

        Specified by:
        tsIncrBy in interface ReactiveTransactionalTimeSeriesCommands<K>
        Parameters:
        key - the key name for the time series. must not be null
        value - the numeric data value of the sample, must not be null
        args - the extra command parameters
        Returns:
        A Uni emitting null when the command has been enqueued successfully in the transaction, a failure otherwise. In the case of failure, the transaction is discarded.
      • tsMAdd

        public io.smallrye.mutiny.Uni<Void> tsMAdd​(SeriesSample<K>... samples)
        Description copied from interface: ReactiveTransactionalTimeSeriesCommands
        Execute the command TS.MADD. Summary: Append new samples to one or more time series Group: time series
        Specified by:
        tsMAdd in interface ReactiveTransactionalTimeSeriesCommands<K>
        Parameters:
        samples - the set of samples to add to the time series.
        Returns:
        A Uni emitting null when the command has been enqueued successfully in the transaction, a failure otherwise. In the case of failure, the transaction is discarded.
      • tsMGet

        public io.smallrye.mutiny.Uni<Void> tsMGet​(MGetArgs args,
                                                   Filter... filters)
        Description copied from interface: ReactiveTransactionalTimeSeriesCommands
        Execute the command TS.MGET. Summary: Get the last samples matching a specific filter Group: time series

        Specified by:
        tsMGet in interface ReactiveTransactionalTimeSeriesCommands<K>
        Parameters:
        args - the extra command parameter, must not be null
        filters - the filters. Instanced are created using the static methods from Filter. Must not be null, or contain a null value.
        Returns:
        A Uni emitting null when the command has been enqueued successfully in the transaction, a failure otherwise. In the case of failure, the transaction is discarded.
      • tsMGet

        public io.smallrye.mutiny.Uni<Void> tsMGet​(Filter... filters)
        Description copied from interface: ReactiveTransactionalTimeSeriesCommands
        Execute the command TS.MGET. Summary: Get the last samples matching a specific filter Group: time series

        Specified by:
        tsMGet in interface ReactiveTransactionalTimeSeriesCommands<K>
        Parameters:
        filters - the filters. Instanced are created using the static methods from Filter. Must not be null, or contain a null value.
        Returns:
        A Uni emitting null when the command has been enqueued successfully in the transaction, a failure otherwise. In the case of failure, the transaction is discarded.
      • tsMRange

        public io.smallrye.mutiny.Uni<Void> tsMRange​(TimeSeriesRange range,
                                                     Filter... filters)
        Description copied from interface: ReactiveTransactionalTimeSeriesCommands
        Execute the command TS.MRANGE. Summary: Query a range across multiple time series by filters in forward direction Group: time series

        Specified by:
        tsMRange in interface ReactiveTransactionalTimeSeriesCommands<K>
        Parameters:
        range - the range, must not be null
        filters - the filters. Instanced are created using the static methods from Filter. Must not be null, or contain a null value.
        Returns:
        A Uni emitting null when the command has been enqueued successfully in the transaction, a failure otherwise. In the case of failure, the transaction is discarded.
      • tsMRange

        public io.smallrye.mutiny.Uni<Void> tsMRange​(TimeSeriesRange range,
                                                     MRangeArgs args,
                                                     Filter... filters)
        Description copied from interface: ReactiveTransactionalTimeSeriesCommands
        Execute the command TS.MRANGE. Summary: Query a range across multiple time series by filters in forward direction Group: time series

        Specified by:
        tsMRange in interface ReactiveTransactionalTimeSeriesCommands<K>
        Parameters:
        range - the range, must not be null
        args - the extra command parameters
        filters - the filters. Instanced are created using the static methods from Filter. Must not be null, or contain a null value.
        Returns:
        A Uni emitting null when the command has been enqueued successfully in the transaction, a failure otherwise. In the case of failure, the transaction is discarded.
      • tsMRevRange

        public io.smallrye.mutiny.Uni<Void> tsMRevRange​(TimeSeriesRange range,
                                                        Filter... filters)
        Description copied from interface: ReactiveTransactionalTimeSeriesCommands
        Execute the command TS.MREVRANGE. Summary: Query a range across multiple time series by filters in reverse direction Group: time series

        Specified by:
        tsMRevRange in interface ReactiveTransactionalTimeSeriesCommands<K>
        Parameters:
        range - the range, must not be null
        filters - the filters. Instanced are created using the static methods from Filter. Must not be null, or contain a null value.
        Returns:
        A Uni emitting null when the command has been enqueued successfully in the transaction, a failure otherwise. In the case of failure, the transaction is discarded.
      • tsMRevRange

        public io.smallrye.mutiny.Uni<Void> tsMRevRange​(TimeSeriesRange range,
                                                        MRangeArgs args,
                                                        Filter... filters)
        Description copied from interface: ReactiveTransactionalTimeSeriesCommands
        Execute the command TS.MREVRANGE. Summary: Query a range across multiple time series by filters in reverse direction Group: time series

        Specified by:
        tsMRevRange in interface ReactiveTransactionalTimeSeriesCommands<K>
        Parameters:
        range - the range, must not be null
        args - the extra command parameters
        filters - the filters. Instanced are created using the static methods from Filter. Must not be null, or contain a null value.
        Returns:
        A Uni emitting null when the command has been enqueued successfully in the transaction, a failure otherwise. In the case of failure, the transaction is discarded.
      • tsQueryIndex

        public io.smallrye.mutiny.Uni<Void> tsQueryIndex​(Filter... filters)
        Description copied from interface: ReactiveTransactionalTimeSeriesCommands
        Execute the command TS.QUERYINDEX. Summary: Get all time series keys matching a filter list Group: time series
        Specified by:
        tsQueryIndex in interface ReactiveTransactionalTimeSeriesCommands<K>
        Parameters:
        filters - the filter, created from the Filter class. Must not be null, must not contain null
        Returns:
        A Uni emitting null when the command has been enqueued successfully in the transaction, a failure otherwise. In the case of failure, the transaction is discarded.
      • tsRange

        public io.smallrye.mutiny.Uni<Void> tsRange​(K key,
                                                    TimeSeriesRange range)
        Description copied from interface: ReactiveTransactionalTimeSeriesCommands
        Execute the command TS.RANGE. Summary: Query a range in forward direction Group: time series

        Specified by:
        tsRange in interface ReactiveTransactionalTimeSeriesCommands<K>
        Parameters:
        key - the key name for the time series, must not be null
        range - the range, must not be null
        Returns:
        A Uni emitting null when the command has been enqueued successfully in the transaction, a failure otherwise. In the case of failure, the transaction is discarded.
      • tsRange

        public io.smallrye.mutiny.Uni<Void> tsRange​(K key,
                                                    TimeSeriesRange range,
                                                    RangeArgs args)
        Description copied from interface: ReactiveTransactionalTimeSeriesCommands
        Execute the command TS.RANGE. Summary: Query a range in forward direction Group: time series

        Specified by:
        tsRange in interface ReactiveTransactionalTimeSeriesCommands<K>
        Parameters:
        key - the key name for the time series, must not be null
        range - the range, must not be null
        args - the extra command parameters
        Returns:
        A Uni emitting null when the command has been enqueued successfully in the transaction, a failure otherwise. In the case of failure, the transaction is discarded.
      • tsRevRange

        public io.smallrye.mutiny.Uni<Void> tsRevRange​(K key,
                                                       TimeSeriesRange range)
        Description copied from interface: ReactiveTransactionalTimeSeriesCommands
        Execute the command TS.REVRANGE. Summary: Query a range in reverse direction Group: time series

        Specified by:
        tsRevRange in interface ReactiveTransactionalTimeSeriesCommands<K>
        Parameters:
        key - the key name for the time series, must not be null
        range - the range, must not be null
        Returns:
        A Uni emitting null when the command has been enqueued successfully in the transaction, a failure otherwise. In the case of failure, the transaction is discarded.
      • tsRevRange

        public io.smallrye.mutiny.Uni<Void> tsRevRange​(K key,
                                                       TimeSeriesRange range,
                                                       RangeArgs args)
        Description copied from interface: ReactiveTransactionalTimeSeriesCommands
        Execute the command TS.REVRANGE. Summary: Query a range in reverse direction Group: time series

        Specified by:
        tsRevRange in interface ReactiveTransactionalTimeSeriesCommands<K>
        Parameters:
        key - the key name for the time series, must not be null
        range - the range, must not be null
        args - the extra command parameters
        Returns:
        A Uni emitting null when the command has been enqueued successfully in the transaction, a failure otherwise. In the case of failure, the transaction is discarded.