TDIGEST.INFO

Syntax
TDIGEST.INFO key
Available in:
Redis Open Source / Bloom 2.4.0
Time complexity:
O(1)
ACL categories:
@tdigest, @read,

Returns information and statistics about a t-digest sketch.

Required arguments

key

is key name for an existing t-digest sketch.

Return value

Array reply with information about the sketch (name-value pairs):

Name
Simple string reply
Description
CompressionInteger reply
The compression (controllable trade-off between accuracy and memory consumption) of the sketch
CapacityInteger reply
Size of the buffer used for storing the centroids and for the incoming unmerged observations
Merged nodesInteger reply
Number of merged observations
Unmerged nodesInteger reply
Number of buffered nodes (uncompressed observations)
Merged weightInteger reply
Weight of values of the merged nodes
Unmerged weightInteger reply
Weight of values of the unmerged nodes (uncompressed observations)
ObservationsInteger reply
Number of observations added to the sketch
Total compressionsInteger reply
Number of times this sketch compressed data together
Memory usageInteger reply
Number of bytes allocated for the sketch

Examples

redis> TDIGEST.CREATE t
OK
redis> TDIGEST.ADD t 1 2 3 4 5
OK
redis> TDIGEST.INFO t
 1) Compression
 2) (integer) 100
 3) Capacity
 4) (integer) 610
 5) Merged nodes
 6) (integer) 0
 7) Unmerged nodes
 8) (integer) 5
 9) Merged weight
10) (integer) 0
11) Unmerged weight
12) (integer) 5
13) Observations
14) (integer) 5
15) Total compressions
16) (integer) 0
17) Memory usage
18) (integer) 9768
RATE THIS PAGE
Back to top ↑