K - Key type.V - Value type.public interface NodeSelectionTDigestAsyncCommands<K,V>
| Modifier and Type | Method and Description |
|---|---|
AsyncExecutions<String> |
tdigestAdd(K key,
double... values)
Adds one or more observations to a t-digest sketch.
|
AsyncExecutions<String> |
tdigestAdd(K key,
double value)
Adds one observation to a t-digest sketch.
|
AsyncExecutions<List<Double>> |
tdigestByRank(K key,
long... ranks)
Returns, for each given rank, an estimation of the value with that rank.
|
AsyncExecutions<List<Double>> |
tdigestByRank(K key,
long rank)
Returns, for the given rank, an estimation of the value with that rank.
|
AsyncExecutions<List<Double>> |
tdigestByRevRank(K key,
long... reverseRanks)
Returns, for each given reverse rank, an estimation of the value with that reverse rank.
|
AsyncExecutions<List<Double>> |
tdigestByRevRank(K key,
long reverseRank)
Returns, for the given reverse rank, an estimation of the value with that reverse rank.
|
AsyncExecutions<List<Double>> |
tdigestCDF(K key,
double... values)
Returns, for each given value, an estimation of the fraction (cumulative distribution) of observations that are smaller
than or equal to it.
|
AsyncExecutions<List<Double>> |
tdigestCDF(K key,
double value)
Returns, for the given value, an estimation of the fraction (cumulative distribution) of observations that are smaller
than or equal to it.
|
AsyncExecutions<String> |
tdigestCreate(K key)
Creates a new t-digest sketch with the default compression.
|
AsyncExecutions<String> |
tdigestCreate(K key,
long compression)
Creates a new t-digest sketch with the given compression.
|
AsyncExecutions<TDigestInfoValue> |
tdigestInfo(K key)
Returns information and configuration about a t-digest sketch.
|
AsyncExecutions<Double> |
tdigestMax(K key)
Returns the maximum observation value from a t-digest sketch.
|
AsyncExecutions<String> |
tdigestMerge(K destination,
K... sourceKeys)
Merges one or more source sketches into the destination sketch.
|
AsyncExecutions<String> |
tdigestMerge(K destination,
K sourceKey)
Merges a source sketch into the destination sketch.
|
AsyncExecutions<String> |
tdigestMerge(K destination,
K sourceKey,
TDigestMergeArgs mergeArgs)
Merges a source sketch into the destination sketch applying the given arguments.
|
AsyncExecutions<String> |
tdigestMerge(K destination,
TDigestMergeArgs mergeArgs,
K... sourceKeys)
Merges one or more source sketches into the destination sketch applying the given arguments.
|
AsyncExecutions<Double> |
tdigestMin(K key)
Returns the minimum observation value from a t-digest sketch.
|
AsyncExecutions<List<Double>> |
tdigestQuantile(K key,
double... quantiles)
Returns, for each given quantile, an estimation of the value at that quantile.
|
AsyncExecutions<List<Double>> |
tdigestQuantile(K key,
double quantile)
Returns, for the given quantile, an estimation of the value at that quantile.
|
AsyncExecutions<List<Long>> |
tdigestRank(K key,
double... values)
Returns, for each given value, the estimated rank, that is the number of observations that are smaller than the value
plus half the number of observations that are equal to the value.
|
AsyncExecutions<List<Long>> |
tdigestRank(K key,
double value)
Returns, for the given value, the estimated rank, that is the number of observations that are smaller than the value plus
half the number of observations that are equal to the value.
|
AsyncExecutions<String> |
tdigestReset(K key)
Resets a t-digest sketch, removing all its observations while keeping the sketch and its configuration in place.
|
AsyncExecutions<List<Long>> |
tdigestRevRank(K key,
double... values)
Returns, for each given value, the estimated reverse rank, that is the number of observations that are larger than the
value plus half the number of observations that are equal to the value.
|
AsyncExecutions<List<Long>> |
tdigestRevRank(K key,
double value)
Returns, for the given value, the estimated reverse rank, that is the number of observations that are larger than the
value plus half the number of observations that are equal to the value.
|
AsyncExecutions<Double> |
tdigestTrimmedMean(K key,
double lowCutQuantile,
double highCutQuantile)
Returns an estimation of the mean value from the sketch, excluding observation values outside the low and high cutoff
quantiles.
|
AsyncExecutions<String> tdigestAdd(K key, double value)
TDIGEST.CREATE.key - the key.value - the value of the observation.OK if the command was executed correctly.AsyncExecutions<String> tdigestAdd(K key, double... values)
TDIGEST.CREATE.key - the key.values - the values of the observations.OK if the command was executed correctly.AsyncExecutions<List<Double>> tdigestByRank(K key, long rank)
0
corresponds to the smallest observation (the minimum).key - the key.rank - the rank for which the value should be estimated, must not be negative.inf if the rank is equal to or exceeds the number of observations and nan if the sketch is empty.AsyncExecutions<List<Double>> tdigestByRank(K key, long... ranks)
0
corresponds to the smallest observation (the minimum).key - the key.ranks - the ranks for which the values should be estimated, must not be negative.inf
if the rank is equal to or exceeds the number of observations. All entries are nan if the sketch is
empty.AsyncExecutions<List<Double>> tdigestByRevRank(K key, long reverseRank)
0 corresponds to the largest observation (the maximum).key - the key.reverseRank - the reverse rank for which the value should be estimated, must not be negative.-inf if the reverse rank is equal to or exceeds the number of observations and nan if the sketch
is empty.AsyncExecutions<List<Double>> tdigestByRevRank(K key, long... reverseRanks)
0 corresponds to the largest observation (the maximum).key - the key.reverseRanks - the reverse ranks for which the values should be estimated, must not be negative.-inf if the reverse rank is equal to or exceeds the number of observations. All entries are
nan if the sketch is empty.AsyncExecutions<List<Double>> tdigestCDF(K key, double value)
key - the key.value - the value for which the fraction should be estimated.[0, 1], of
observations smaller than or equal to the given value.AsyncExecutions<List<Double>> tdigestCDF(K key, double... values)
key - the key.values - the values for which the fractions should be estimated.[0, 1], of
observations smaller than or equal to that value.AsyncExecutions<String> tdigestCreate(K key)
100.key - the key.OK if the command was executed correctly.AsyncExecutions<String> tdigestCreate(K key, long compression)
key - the key.compression - the compression parameter that controls the accuracy versus memory trade-off.OK if the command was executed correctly.AsyncExecutions<TDigestInfoValue> tdigestInfo(K key)
key - the key.AsyncExecutions<Double> tdigestMax(K key)
key - the key.nan if the sketch is empty.AsyncExecutions<String> tdigestMerge(K destination, K sourceKey)
destination - the key of the destination sketch that receives the merged data.sourceKey - the key of the source sketch to merge.OK if the command was executed correctly.AsyncExecutions<String> tdigestMerge(K destination, K sourceKey, TDigestMergeArgs mergeArgs)
destination - the key of the destination sketch that receives the merged data.sourceKey - the key of the source sketch to merge.mergeArgs - the arguments controlling the compression of the destination sketch and whether the destination sketch
is reset before the merge, must not be null.OK if the command was executed correctly.AsyncExecutions<String> tdigestMerge(K destination, K... sourceKeys)
destination - the key of the destination sketch that receives the merged data.sourceKeys - the keys of the source sketches to merge, must not be empty.OK if the command was executed correctly.AsyncExecutions<String> tdigestMerge(K destination, TDigestMergeArgs mergeArgs, K... sourceKeys)
destination - the key of the destination sketch that receives the merged data.mergeArgs - the arguments controlling the compression of the destination sketch and whether the destination sketch
is reset before the merge, must not be null.sourceKeys - the keys of the source sketches to merge, must not be empty.OK if the command was executed correctly.AsyncExecutions<Double> tdigestMin(K key)
key - the key.nan if the sketch is empty.AsyncExecutions<List<Double>> tdigestQuantile(K key, double quantile)
key - the key.quantile - the quantile, in the range [0, 1], for which the value should be estimated.nan if the
sketch is empty.AsyncExecutions<List<Double>> tdigestQuantile(K key, double... quantiles)
key - the key.quantiles - the quantiles, each in the range [0, 1], for which the values should be estimated.nan if
the sketch is empty.AsyncExecutions<List<Long>> tdigestRank(K key, double value)
key - the key.value - the value for which the rank should be estimated.-1 if the
value is smaller than the minimum observation, equal to the number of observations if it is larger than the
maximum, and -2 if the sketch is empty.AsyncExecutions<List<Long>> tdigestRank(K key, double... values)
key - the key.values - the values for which the ranks should be estimated.-1 if the value is
smaller than the minimum observation and equal to the number of observations if it is larger than the maximum.
All entries are -2 if the sketch is empty.AsyncExecutions<String> tdigestReset(K key)
key - the key.OK if the command was executed correctly.AsyncExecutions<List<Long>> tdigestRevRank(K key, double value)
key - the key.value - the value for which the reverse rank should be estimated.-1 if the value is larger than the maximum observation, equal to the number of observations if it is
smaller than the minimum, and -2 if the sketch is empty.AsyncExecutions<List<Long>> tdigestRevRank(K key, double... values)
key - the key.values - the values for which the reverse ranks should be estimated.-1 if the
value is larger than the maximum observation and equal to the number of observations if it is smaller than the
minimum. All entries are -2 if the sketch is empty.AsyncExecutions<Double> tdigestTrimmedMean(K key, double lowCutQuantile, double highCutQuantile)
key - the key.lowCutQuantile - the low cutoff quantile, in the range [0, 1]; observations below it are excluded. Must be
smaller than highCutQuantile.highCutQuantile - the high cutoff quantile, in the range [0, 1]; observations above it are excluded. Must be
larger than lowCutQuantile.nan if the sketch is empty.Copyright © 2026 lettuce.io. All rights reserved.