Interface TDigestSketchCommands
- All Known Subinterfaces:
RedisBloomCommands,RedisModuleCommands
- All Known Implementing Classes:
JedisCluster,JedisPooled,JedisSentineled,JedisSharding,UnifiedJedis
public interface TDigestSketchCommands
-
Method Summary
Modifier and TypeMethodDescriptiontdigestAdd(String key, double... values) TDIGEST.ADD key value weight [ value weight ...]tdigestByRank(String key, long... ranks) tdigestByRevRank(String key, long... ranks) tdigestCDF(String key, double... values) TDIGEST.CDF key value [value ...]tdigestCreate(String key) TDIGEST.CREATE keytdigestCreate(String key, int compression) TDIGEST.CREATE key [compression]tdigestInfo(String key) TDIGEST.INFO keydoubletdigestMax(String key) TDIGEST.MAX keytdigestMerge(String destinationKey, String... sourceKeys) TDIGEST.MERGE destination-key numkeys source-key [source-key ...]tdigestMerge(TDigestMergeParams mergeParams, String destinationKey, String... sourceKeys) TDIGEST.MERGE destination-key numkeys source-key [source-key ...] [COMPRESSION compression] [OVERRIDE]doubletdigestMin(String key) TDIGEST.MIN keytdigestQuantile(String key, double... quantiles) TDIGEST.QUANTILE key quantile [quantile ...]tdigestRank(String key, double... values) tdigestReset(String key) TDIGEST.RESET keytdigestRevRank(String key, double... values) doubletdigestTrimmedMean(String key, double lowCutQuantile, double highCutQuantile) TDIGEST.TRIMMED_MEAN key low_cut_quantile high_cut_quantile
-
Method Details
-
tdigestCreate
TDIGEST.CREATE key- Parameters:
key- The name of the sketch (a t-digest data structure)- Returns:
- OK
-
tdigestCreate
TDIGEST.CREATE key [compression]- Parameters:
key- The name of the sketch (a t-digest data structure)compression- The compression parameter. 100 is a common value for normal uses. 1000 is extremely large.- Returns:
- OK
-
tdigestReset
TDIGEST.RESET key- Parameters:
key- The name of the sketch (a t-digest data structure)- Returns:
- OK
-
tdigestMerge
TDIGEST.MERGE destination-key numkeys source-key [source-key ...]- Parameters:
destinationKey- Sketch to copy observation values to (a t-digest data structure)sourceKeys- Sketch(es) to copy observation values from (a t-digest data structure)- Returns:
- OK
-
tdigestMerge
TDIGEST.MERGE destination-key numkeys source-key [source-key ...] [COMPRESSION compression] [OVERRIDE]- Parameters:
mergeParams- compression and override optionsdestinationKey- Sketch to copy observation values to (a t-digest data structure)sourceKeys- Sketch(es) to copy observation values from (a t-digest data structure)- Returns:
- OK
-
tdigestInfo
TDIGEST.INFO key- Parameters:
key- The name of the sketch (a t-digest data structure)- Returns:
- information about the sketch
-
tdigestAdd
TDIGEST.ADD key value weight [ value weight ...]- Parameters:
key- The name of the sketch (a t-digest data structure)values- The value of the observation (floating-point)- Returns:
- OK
-
tdigestCDF
TDIGEST.CDF key value [value ...]- Parameters:
key- The name of the sketch (a t-digest data structure)values- upper limit of observation value, for which the fraction of all observations added which are ≤ value- Returns:
- estimation of the fraction of all observations added which are ≤ value
-
tdigestQuantile
TDIGEST.QUANTILE key quantile [quantile ...]- Parameters:
key- The name of the sketch (a t-digest data structure)quantiles- The desired fraction(s) (between 0 and 1 inclusively)- Returns:
- results
-
tdigestMin
TDIGEST.MIN key- Parameters:
key- The name of the sketch (a t-digest data structure)- Returns:
- minimum observation value from the sketch
-
tdigestMax
TDIGEST.MAX key- Parameters:
key- The name of the sketch (a t-digest data structure)- Returns:
- maximum observation value from the sketch
-
tdigestTrimmedMean
TDIGEST.TRIMMED_MEAN key low_cut_quantile high_cut_quantile- Parameters:
key- The name of the sketch (a t-digest data structure)lowCutQuantile- Exclude observation values lower than this quantilehighCutQuantile- Exclude observation values higher than this quantile- Returns:
- estimation of the mean value
-
tdigestRank
-
tdigestRevRank
-
tdigestByRank
-
tdigestByRevRank
-