Class AddArgs
java.lang.Object
io.quarkus.redis.datasource.timeseries.AddArgs
- All Implemented Interfaces:
RedisCommandExtraArguments
Represents the extra arguments of the
ts.add
command.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionchunkSize
(int size) Sets the memory size, in bytes, allocated for each data chunk.Set the series sample's encoding format toCOMPRESSED
Use it only if you are creating a new time series.Set a label-value pairs that represent metadata labels of the time series.onDuplicate
(DuplicatePolicy policy) Overwrite key and database configuration for DUPLICATE_POLICY, the policy for handling samples with identical timestamps.setRetention
(Duration retention) Set the maximum retention period, compared to the maximum existing timestamp, in milliseconds.toArgs()
Set the series sample's encoding format toUNCOMPRESSED
Use it only if you are creating a new 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
-
Constructor Details
-
AddArgs
public AddArgs()
-
-
Method Details
-
setRetention
Set the maximum retention period, compared to the maximum existing timestamp, in milliseconds.Use it only if you are creating a new time series. It is ignored if you are adding samples to an existing time series.
- Parameters:
retention
- the retention, must not benull
- Returns:
- the current
AddArgs
-
compressed
Set the series sample's encoding format toCOMPRESSED
Use it only if you are creating a new time series. It is ignored if you are adding samples to an existing time series.- Returns:
- the current
AddArgs
-
uncompressed
Set the series sample's encoding format toUNCOMPRESSED
Use it only if you are creating a new time series. It is ignored if you are adding samples to an existing time series.- Returns:
- the current
AddArgs
-
chunkSize
Sets the memory size, in bytes, allocated for each data chunk. Use it only if you are creating a new time series. It is ignored if you are adding samples to an existing time series.- Parameters:
size
- the chunk size, between 48 and 1048576- Returns:
- the current
AddArgs
-
onDuplicate
Overwrite key and database configuration for DUPLICATE_POLICY, the policy for handling samples with identical timestamps.- Parameters:
policy
- the policy, must not benull
- Returns:
- the current
AddArgs
-
label
Set a label-value pairs that represent metadata labels of the time series.- Parameters:
label
- the label, must not benull
value
- the value, must not benull
- Returns:
- the current
AddArgs
-
toArgs
- Specified by:
toArgs
in interfaceRedisCommandExtraArguments
- Returns:
- the list of arguments.
-