Class BlockingTransactionalTimeSeriesCommandsImpl<K>
- java.lang.Object
-
- io.quarkus.redis.runtime.datasource.AbstractTransactionalRedisCommandGroup
-
- io.quarkus.redis.runtime.datasource.BlockingTransactionalTimeSeriesCommandsImpl<K>
-
- All Implemented Interfaces:
TransactionalTimeSeriesCommands<K>,TransactionalRedisCommands
public class BlockingTransactionalTimeSeriesCommandsImpl<K> extends AbstractTransactionalRedisCommandGroup implements TransactionalTimeSeriesCommands<K>
-
-
Field Summary
-
Fields inherited from class io.quarkus.redis.runtime.datasource.AbstractTransactionalRedisCommandGroup
ds, timeout
-
-
Constructor Summary
Constructors Constructor Description BlockingTransactionalTimeSeriesCommandsImpl(TransactionalRedisDataSource ds, ReactiveTransactionalTimeSeriesCommands<K> reactive, Duration timeout)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidtsAdd(K key, double value)Execute the command TS.ADD.voidtsAdd(K key, long timestamp, double value)Execute the command TS.ADD.voidtsAdd(K key, long timestamp, double value, AddArgs args)Execute the command TS.ADD.voidtsAlter(K key, AlterArgs args)Execute the command TS.ALTER.voidtsCreate(K key)Execute the command TS.CREATE.voidtsCreate(K key, CreateArgs args)Execute the command TS.CREATE.voidtsCreateRule(K key, K destKey, Aggregation aggregation, Duration bucketDuration)Execute the command TS.CREATERULE.voidtsCreateRule(K key, K destKey, Aggregation aggregation, Duration bucketDuration, long alignTimestamp)Execute the command TS.CREATERULE.voidtsDecrBy(K key, double value)Execute the command TS.DECRBY.voidtsDecrBy(K key, double value, IncrementArgs args)Execute the command TS.DECRBY.voidtsDel(K key, long fromTimestamp, long toTimestamp)Execute the command TS.DEL.voidtsDeleteRule(K key, K destKey)Execute the command TS.DELETERULE.voidtsGet(K key)Execute the command TS.GET.voidtsGet(K key, boolean latest)Execute the command TS.GET.voidtsIncrBy(K key, double value)Execute the command TS.INCRBY.voidtsIncrBy(K key, double value, IncrementArgs args)Execute the command TS.INCRBY.voidtsMAdd(SeriesSample<K>... samples)Execute the command TS.MADD.voidtsMGet(Filter... filters)Execute the command TS.MGET.voidtsMGet(MGetArgs args, Filter... filters)Execute the command TS.MGET.voidtsMRange(TimeSeriesRange range, Filter... filters)Execute the command TS.MRANGE.voidtsMRange(TimeSeriesRange range, MRangeArgs args, Filter... filters)Execute the command TS.MRANGE.voidtsMRevRange(TimeSeriesRange range, Filter... filters)Execute the command TS.MREVRANGE.voidtsMRevRange(TimeSeriesRange range, MRangeArgs args, Filter... filters)Execute the command TS.MREVRANGE.voidtsQueryIndex(Filter... filters)Execute the command TS.QUERYINDEX.voidtsRange(K key, TimeSeriesRange range)Execute the command TS.RANGE.voidtsRange(K key, TimeSeriesRange range, RangeArgs args)Execute the command TS.RANGE.voidtsRevRange(K key, TimeSeriesRange range)Execute the command TS.REVRANGE.voidtsRevRange(K key, TimeSeriesRange range, RangeArgs args)Execute the command TS.REVRANGE.-
Methods inherited from class io.quarkus.redis.runtime.datasource.AbstractTransactionalRedisCommandGroup
getDataSource
-
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.TransactionalRedisCommands
getDataSource
-
-
-
-
Constructor Detail
-
BlockingTransactionalTimeSeriesCommandsImpl
public BlockingTransactionalTimeSeriesCommandsImpl(TransactionalRedisDataSource ds, ReactiveTransactionalTimeSeriesCommands<K> reactive, Duration timeout)
-
-
Method Detail
-
tsCreate
public void tsCreate(K key, CreateArgs args)
Description copied from interface:TransactionalTimeSeriesCommandsExecute the command TS.CREATE. Summary: Create a new time series Group: time series- Specified by:
tsCreatein interfaceTransactionalTimeSeriesCommands<K>- Parameters:
key- the key name for the time series must not benullargs- the creation arguments.
-
tsCreate
public void tsCreate(K key)
Description copied from interface:TransactionalTimeSeriesCommandsExecute the command TS.CREATE. Summary: Create a new time series Group: time series- Specified by:
tsCreatein interfaceTransactionalTimeSeriesCommands<K>- Parameters:
key- the key name for the time series must not benull
-
tsAdd
public void tsAdd(K key, long timestamp, double value, AddArgs args)
Description copied from interface:TransactionalTimeSeriesCommandsExecute the command TS.ADD. Summary: Append a sample to a time series Group: time series- Specified by:
tsAddin interfaceTransactionalTimeSeriesCommands<K>- Parameters:
key- the key name for the time series must not benulltimestamp- the (long) UNIX sample timestamp in milliseconds or-1to set the timestamp according to the server clock.value- the numeric data value of the sample.args- the creation arguments.
-
tsAdd
public void tsAdd(K key, long timestamp, double value)
Description copied from interface:TransactionalTimeSeriesCommandsExecute the command TS.ADD. Summary: Append a sample to a time series Group: time series- Specified by:
tsAddin interfaceTransactionalTimeSeriesCommands<K>- Parameters:
key- the key name for the time series, must not benulltimestamp- the (long) UNIX sample timestamp in millisecondsvalue- the numeric data value of the sample
-
tsAdd
public void tsAdd(K key, double value)
Description copied from interface:TransactionalTimeSeriesCommandsExecute the command TS.ADD. Summary: Append a sample to a time series Group: time seriesUnlike
TransactionalTimeSeriesCommands.tsAdd(Object, long, double), set the timestamp according to the server clock.- Specified by:
tsAddin interfaceTransactionalTimeSeriesCommands<K>- Parameters:
key- the key name for the time series. must not benullvalue- the numeric data value of the sample, must not benull
-
tsAlter
public void tsAlter(K key, AlterArgs args)
Description copied from interface:TransactionalTimeSeriesCommandsExecute the command TS.ALTER. Summary: Update the retention, chunk size, duplicate policy, and labels of an existing time series Group: time series- Specified by:
tsAlterin interfaceTransactionalTimeSeriesCommands<K>- Parameters:
key- the key name for the time series, must not benullargs- the alter parameters, must not benull
-
tsCreateRule
public void tsCreateRule(K key, K destKey, Aggregation aggregation, Duration bucketDuration)
Description copied from interface:TransactionalTimeSeriesCommandsExecute the command TS.CREATERULE. Summary: Create a compaction rule Group: time series- Specified by:
tsCreateRulein interfaceTransactionalTimeSeriesCommands<K>- Parameters:
key- the key name for the time series, must not benulldestKey- the key name for destination (compacted) time series. It must be created before TS.CREATERULE is called. Must not benull.aggregation- the aggregation function, must not benullbucketDuration- the duration of each bucket, must not benull
-
tsCreateRule
public void tsCreateRule(K key, K destKey, Aggregation aggregation, Duration bucketDuration, long alignTimestamp)
Description copied from interface:TransactionalTimeSeriesCommandsExecute the command TS.CREATERULE. Summary: Create a compaction rule Group: time series- Specified by:
tsCreateRulein interfaceTransactionalTimeSeriesCommands<K>- Parameters:
key- the key name for the time series, must not benulldestKey- the key name for destination (compacted) time series. It must be created before TS.CREATERULE is called. Must not benull.aggregation- the aggregation function, must not benullbucketDuration- the duration of each bucket, must not benullalignTimestamp- 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).
-
tsDecrBy
public void tsDecrBy(K key, double value)
Description copied from interface:TransactionalTimeSeriesCommandsExecute 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:
tsDecrByin interfaceTransactionalTimeSeriesCommands<K>- Parameters:
key- the key name for the time series. must not benullvalue- the numeric data value of the sample, must not benull
-
tsDecrBy
public void tsDecrBy(K key, double value, IncrementArgs args)
Description copied from interface:TransactionalTimeSeriesCommandsExecute 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:
tsDecrByin interfaceTransactionalTimeSeriesCommands<K>- Parameters:
key- the key name for the time series. must not benullvalue- the numeric data value of the sample, must not benullargs- the extra command parameters
-
tsDel
public void tsDel(K key, long fromTimestamp, long toTimestamp)
Description copied from interface:TransactionalTimeSeriesCommandsExecute the command TS.DEL. Summary: Delete all samples between two timestamps for a given time series Group: time seriesThe given timestamp interval is closed (inclusive), meaning that samples whose timestamp equals the fromTimestamp or toTimestamp are also deleted.
- Specified by:
tsDelin interfaceTransactionalTimeSeriesCommands<K>- Parameters:
key- the key name for the time series. must not benullfromTimestamp- the start timestamp for the range deletion.toTimestamp- the end timestamp for the range deletion.
-
tsDeleteRule
public void tsDeleteRule(K key, K destKey)
Description copied from interface:TransactionalTimeSeriesCommandsExecute the command TS.DELETERULE. Summary: Delete a compaction rule Group: time series- Specified by:
tsDeleteRulein interfaceTransactionalTimeSeriesCommands<K>- Parameters:
key- the key name for the time series. must not benulldestKey- the key name for destination (compacted) time series. Note that the command does not delete the compacted series. Must not benull
-
tsGet
public void tsGet(K key)
Description copied from interface:TransactionalTimeSeriesCommandsExecute the command TS.GET. Summary: Get the last sample Group: time series- Specified by:
tsGetin interfaceTransactionalTimeSeriesCommands<K>- Parameters:
key- the key name for the time series. must not benull
-
tsGet
public void tsGet(K key, boolean latest)
Description copied from interface:TransactionalTimeSeriesCommandsExecute the command TS.GET. Summary: Get the last sample Group: time series- Specified by:
tsGetin interfaceTransactionalTimeSeriesCommands<K>- Parameters:
key- the key name for the time series. must not benulllatest- used when a time series is a compaction. With LATEST set totrue, 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.
-
tsIncrBy
public void tsIncrBy(K key, double value)
Description copied from interface:TransactionalTimeSeriesCommandsExecute 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:
tsIncrByin interfaceTransactionalTimeSeriesCommands<K>- Parameters:
key- the key name for the time series. must not benullvalue- the numeric data value of the sample, must not benull
-
tsIncrBy
public void tsIncrBy(K key, double value, IncrementArgs args)
Description copied from interface:TransactionalTimeSeriesCommandsExecute 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:
tsIncrByin interfaceTransactionalTimeSeriesCommands<K>- Parameters:
key- the key name for the time series. must not benullvalue- the numeric data value of the sample, must not benullargs- the extra command parameters
-
tsMAdd
public void tsMAdd(SeriesSample<K>... samples)
Description copied from interface:TransactionalTimeSeriesCommandsExecute the command TS.MADD. Summary: Append new samples to one or more time series Group: time series- Specified by:
tsMAddin interfaceTransactionalTimeSeriesCommands<K>- Parameters:
samples- the set of samples to add to the time series.
-
tsMGet
public void tsMGet(MGetArgs args, Filter... filters)
Description copied from interface:TransactionalTimeSeriesCommandsExecute the command TS.MGET. Summary: Get the last samples matching a specific filter Group: time series- Specified by:
tsMGetin interfaceTransactionalTimeSeriesCommands<K>- Parameters:
args- the extra command parameter, must not benullfilters- the filters. Instanced are created using the static methods fromFilter. Must not benull, or contain anullvalue.
-
tsMGet
public void tsMGet(Filter... filters)
Description copied from interface:TransactionalTimeSeriesCommandsExecute the command TS.MGET. Summary: Get the last samples matching a specific filter Group: time series- Specified by:
tsMGetin interfaceTransactionalTimeSeriesCommands<K>- Parameters:
filters- the filters. Instanced are created using the static methods fromFilter. Must not benull, or contain anullvalue.
-
tsMRange
public void tsMRange(TimeSeriesRange range, Filter... filters)
Description copied from interface:TransactionalTimeSeriesCommandsExecute the command TS.MRANGE. Summary: Query a range across multiple time series by filters in forward direction Group: time series- Specified by:
tsMRangein interfaceTransactionalTimeSeriesCommands<K>- Parameters:
range- the range, must not benullfilters- the filters. Instanced are created using the static methods fromFilter. Must not benull, or contain anullvalue.
-
tsMRange
public void tsMRange(TimeSeriesRange range, MRangeArgs args, Filter... filters)
Description copied from interface:TransactionalTimeSeriesCommandsExecute the command TS.MRANGE. Summary: Query a range across multiple time series by filters in forward direction Group: time series- Specified by:
tsMRangein interfaceTransactionalTimeSeriesCommands<K>- Parameters:
range- the range, must not benullargs- the extra command parametersfilters- the filters. Instanced are created using the static methods fromFilter. Must not benull, or contain anullvalue.
-
tsMRevRange
public void tsMRevRange(TimeSeriesRange range, Filter... filters)
Description copied from interface:TransactionalTimeSeriesCommandsExecute the command TS.MREVRANGE. Summary: Query a range across multiple time series by filters in reverse direction Group: time series- Specified by:
tsMRevRangein interfaceTransactionalTimeSeriesCommands<K>- Parameters:
range- the range, must not benullfilters- the filters. Instanced are created using the static methods fromFilter. Must not benull, or contain anullvalue.
-
tsMRevRange
public void tsMRevRange(TimeSeriesRange range, MRangeArgs args, Filter... filters)
Description copied from interface:TransactionalTimeSeriesCommandsExecute the command TS.MREVRANGE. Summary: Query a range across multiple time series by filters in reverse direction Group: time series- Specified by:
tsMRevRangein interfaceTransactionalTimeSeriesCommands<K>- Parameters:
range- the range, must not benullargs- the extra command parametersfilters- the filters. Instanced are created using the static methods fromFilter. Must not benull, or contain anullvalue.
-
tsQueryIndex
public void tsQueryIndex(Filter... filters)
Description copied from interface:TransactionalTimeSeriesCommandsExecute the command TS.QUERYINDEX. Summary: Get all time series keys matching a filter list Group: time series- Specified by:
tsQueryIndexin interfaceTransactionalTimeSeriesCommands<K>- Parameters:
filters- the filter, created from theFilterclass. Must not benull, must not containnull
-
tsRange
public void tsRange(K key, TimeSeriesRange range)
Description copied from interface:TransactionalTimeSeriesCommandsExecute the command TS.RANGE. Summary: Query a range in forward direction Group: time series- Specified by:
tsRangein interfaceTransactionalTimeSeriesCommands<K>- Parameters:
key- the key name for the time series, must not benullrange- the range, must not benull
-
tsRange
public void tsRange(K key, TimeSeriesRange range, RangeArgs args)
Description copied from interface:TransactionalTimeSeriesCommandsExecute the command TS.RANGE. Summary: Query a range in forward direction Group: time series- Specified by:
tsRangein interfaceTransactionalTimeSeriesCommands<K>- Parameters:
key- the key name for the time series, must not benullrange- the range, must not benullargs- the extra command parameters
-
tsRevRange
public void tsRevRange(K key, TimeSeriesRange range)
Description copied from interface:TransactionalTimeSeriesCommandsExecute the command TS.REVRANGE. Summary: Query a range in reverse direction Group: time series- Specified by:
tsRevRangein interfaceTransactionalTimeSeriesCommands<K>- Parameters:
key- the key name for the time series, must not benullrange- the range, must not benull
-
tsRevRange
public void tsRevRange(K key, TimeSeriesRange range, RangeArgs args)
Description copied from interface:TransactionalTimeSeriesCommandsExecute the command TS.REVRANGE. Summary: Query a range in reverse direction Group: time series- Specified by:
tsRevRangein interfaceTransactionalTimeSeriesCommands<K>- Parameters:
key- the key name for the time series, must not benullrange- the range, must not benullargs- the extra command parameters
-
-