You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/commands/cms.incrby.md
+20-7Lines changed: 20 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -45,17 +45,30 @@ Increases the count of item by increment. Multiple items can be increased with o
45
45
***item**: The item which counter is to be increased.
46
46
***increment**: Amount by which the item counter is to be increased.
47
47
48
-
## Return
49
-
50
-
51
-
[Array reply]({{< relref "/develop/reference/protocol-spec#arrays" >}}) of [Integer reply]({{< relref "/develop/reference/protocol-spec#integers" >}}) with an updated min-count of each of the items in the sketch.
52
-
53
-
Count of each item after increment.
54
-
55
48
## Examples
56
49
57
50
```
58
51
redis> CMS.INCRBY test foo 10 bar 42
59
52
1) (integer) 10
60
53
2) (integer) 42
61
54
```
55
+
56
+
## Return information
57
+
58
+
{{< multitabs id=“cms-incrby-return-info"
59
+
tab1="RESP2"
60
+
tab2="RESP3" >}}
61
+
62
+
One of the following:
63
+
64
+
*[Array]({{< relref "/develop/reference/protocol-spec#arrays" >}}) of [integer replies]({{< relref "/develop/reference/protocol-spec#integers" >}}) representing updated min-counts of each of the provided items in the sketch.
65
+
*[Simple error reply]({{< relref "/develop/reference/protocol-spec#simple-errors" >}}) in these cases: invalid arguments, missing key, overflow, or wrong key type.
66
+
67
+
-tab-sep-
68
+
69
+
One of the following:
70
+
71
+
*[Array]({{< relref "/develop/reference/protocol-spec#arrays" >}}) of [integer replies]({{< relref "/develop/reference/protocol-spec#integers" >}}) representing updated min-counts of each of the provided items in the sketch.
72
+
*[Simple error reply]({{< relref "/develop/reference/protocol-spec#simple-errors" >}}) in these cases: invalid arguments, missing key, overflow, or wrong key type.
Copy file name to clipboardExpand all lines: content/commands/cms.merge.md
+20-4Lines changed: 20 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -53,13 +53,29 @@ Merges several sketches into one sketch. All sketches must have identical width
53
53
***src**: Names of source sketches to be merged.
54
54
***weight**: Multiple of each sketch. Default =1.
55
55
56
-
## Return
57
-
58
-
[Simple string reply]({{< relref "/develop/reference/protocol-spec#simple-strings" >}}) - `OK` if executed correctly, or [] otherwise.
59
-
60
56
## Examples
61
57
62
58
```
63
59
redis> CMS.MERGE dest 2 test1 test2 WEIGHTS 1 3
64
60
OK
65
61
```
62
+
63
+
## Return information
64
+
65
+
{{< multitabs id=“cms-merge-return-info"
66
+
tab1="RESP2"
67
+
tab2="RESP3" >}}
68
+
69
+
One of the following:
70
+
71
+
*[Simple string reply]({{< relref "/develop/reference/protocol-spec#simple-strings" >}}) `OK` if executed correctly.
72
+
*[Simple error reply]({{< relref "/develop/reference/protocol-spec#simple-errors" >}}) in these cases: non-existent key or destination key is not of the same width and/or depth.
73
+
74
+
-tab-sep-
75
+
76
+
One of the following:
77
+
78
+
*[Simple string reply]({{< relref "/develop/reference/protocol-spec#simple-strings" >}}) `OK` if executed correctly.
79
+
*[Simple error reply]({{< relref "/develop/reference/protocol-spec#simple-errors" >}}) in these cases: non-existent key or destination key is not of the same width and/or depth.
Copy file name to clipboardExpand all lines: content/commands/cms.query.md
+19-7Lines changed: 19 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -38,16 +38,28 @@ Returns the count for one or more items in a sketch.
38
38
***key**: The name of the sketch.
39
39
***item**: One or more items for which to return the count.
40
40
41
-
## Return
42
-
43
-
Count of one or more items
44
-
45
-
[Array reply]({{< relref "/develop/reference/protocol-spec#arrays" >}}) of [Integer reply]({{< relref "/develop/reference/protocol-spec#integers" >}}) with a min-count of each of the items in the sketch.
46
-
47
41
## Examples
48
42
49
43
```
50
44
redis> CMS.QUERY test foo bar
51
45
1) (integer) 10
52
46
2) (integer) 42
53
-
```
47
+
```
48
+
49
+
{{< multitabs id=“cms-merge-return-info"
50
+
tab1="RESP2"
51
+
tab2="RESP3" >}}
52
+
53
+
One of the following:
54
+
55
+
*[Array]({{< relref "/develop/reference/protocol-spec#arrays" >}}) of [integer replies]({{< relref "/develop/reference/protocol-spec#integers" >}}) representing the min-counts of each of the provided items in the sketch.
56
+
*[Simple error reply]({{< relref "/develop/reference/protocol-spec#simple-errors" >}}) in these cases: invalid arguments, missing key, or wrong key type.
57
+
58
+
-tab-sep-
59
+
60
+
One of the following:
61
+
62
+
*[Array]({{< relref "/develop/reference/protocol-spec#arrays" >}}) of [integer replies]({{< relref "/develop/reference/protocol-spec#integers" >}}) representing the min-counts of each of the provided items in the sketch.
63
+
*[Simple error reply]({{< relref "/develop/reference/protocol-spec#simple-errors" >}}) in these cases: invalid arguments, missing key, or wrong key type.
[Simple string reply]({{< relref "/develop/reference/protocol-spec#simple-strings" >}}) - `OK` if executed correctly, or [] otherwise.
49
+
is the floating-point value of an observation.
50
+
</details>
53
51
54
52
## Examples
55
53
@@ -62,3 +60,23 @@ OK
62
60
redis> TDIGEST.ADD t string
63
61
(error) ERR T-Digest: error parsing val parameter
64
62
{{< / highlight >}}
63
+
64
+
## Return information
65
+
66
+
{{< multitabs id=“tdigest-add-return-info"
67
+
tab1="RESP2"
68
+
tab2="RESP3" >}}
69
+
70
+
One of the following:
71
+
72
+
*[Simple string reply]({{< relref "/develop/reference/protocol-spec#simple-strings" >}}) `OK` if executed correctly.
73
+
*[Simple error reply]({{< relref "/develop/reference/protocol-spec#simple-errors" >}}) in these cases: the given key does not exist or the value parameter is of the incorrect type.
74
+
75
+
-tab-sep-
76
+
77
+
One of the following:
78
+
79
+
*[Simple string reply]({{< relref "/develop/reference/protocol-spec#simple-strings" >}}) `OK` if executed correctly.
80
+
*[Simple error reply]({{< relref "/develop/reference/protocol-spec#simple-errors" >}}) in these cases: the given key does not exist or the value parameter is of the incorrect type.
Copy file name to clipboardExpand all lines: content/commands/tdigest.byrank.md
+37-20Lines changed: 37 additions & 20 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -19,51 +19,40 @@ categories:
19
19
- kubernetes
20
20
- clients
21
21
complexity: O(N) where N is the number of ranks specified.
22
-
description: Returns, for each input rank, an estimation of the value (floating-point)
22
+
description: Returns, for each input rank, a floating-point estimation of the value
23
23
with that rank
24
24
group: tdigest
25
25
hidden: false
26
26
linkTitle: TDIGEST.BYRANK
27
27
module: Bloom
28
28
since: 2.4.0
29
29
stack_path: docs/data-types/probabilistic
30
-
summary: Returns, for each input rank, an estimation of the value (floating-point)
30
+
summary: Returns, for each input rank, a floating-point estimation of the value
31
31
with that rank
32
32
syntax_fmt: TDIGEST.BYRANK key rank [rank ...]
33
33
syntax_str: rank [rank ...]
34
34
title: TDIGEST.BYRANK
35
35
---
36
-
Returns, for each input rank, an estimation of the value (floating-point) with that rank.
37
-
38
-
Multiple estimations can be retrieved in a signle call.
36
+
Returns, for each input rank, a floating-point estimation of the value with that rank.
37
+
Multiple estimations can be retrieved in a single call.
39
38
40
39
## Required arguments
41
40
42
41
<detailsopen><summary><code>key</code></summary>
43
-
is key name for an existing t-digest sketch.
42
+
43
+
is the key name of an existing t-digest sketch.
44
44
</details>
45
45
46
46
<detailsopen><summary><code>rank</code></summary>
47
47
48
-
Rank, for which the value should be retrieved.
48
+
Ranks for which the values should be retrieved.
49
49
50
50
0 is the rank of the value of the smallest observation.
51
51
52
-
_n_-1 is the rank of the value of the largest observation; _n_ denotes the number of observations added to the sketch.
53
-
52
+
_n_-1 is the rank of the value of the largest observation, where _n_ denotes the number of observations that have been added to the sketch.
54
53
</details>
55
54
56
-
## Return value
57
-
58
-
[Array reply]({{< relref "/develop/reference/protocol-spec#arrays" >}}) - an array of floating-points populated with value_1, value_2, ..., value_R:
59
-
60
-
- Return an accurate result when `rank` is 0 (the value of the smallest observation)
61
-
- Return an accurate result when `rank` is _n_-1 (the value of the largest observation), where _n_ denotes the number of observations added to the sketch.
62
-
- Return 'inf' when `rank` is equal to _n_ or larger than _n_
*[Array]({{< relref "/develop/reference/protocol-spec#arrays" >}}) of [bulk strings]({{< relref "/develop/reference/protocol-spec#bulk-strings" >}}) as floating-points, populated with value_1, value_2, ..., value_R:
90
+
* an accurate result when `rank` is `0`, the value of the smallest observation.
91
+
* an accurate result when `rank` is _n_-1, the value of the largest observation, where _n_ denotes the number of observations added to the sketch.
92
+
*`inf` when `rank` is equal to _n_ or larger than _n_.
93
+
*`nan` for all ranks when the given sketch is empty.
94
+
*[Simple error reply]({{< relref "/develop/reference/protocol-spec#simple-errors" >}}) in these cases: the given key does not exist or is of an incorrect type, rank parsing errors, or incorrect number of arguments.
95
+
96
+
-tab-sep-
97
+
98
+
One of the following:
99
+
100
+
*[Array]({{< relref "/develop/reference/protocol-spec#arrays" >}}) of [doubles]({{< relref "/develop/reference/protocol-spec#doubles" >}}) as floating-points, populated with value_1, value_2, ..., value_R:
101
+
* an accurate result when `rank` is `0`, the value of the smallest observation.
102
+
* an accurate result when `rank` is _n_-1, the value of the largest observation, where _n_ denotes the number of observations added to the sketch.
103
+
*`inf` when `rank` is equal to _n_ or larger than _n_.
104
+
*`nan` for all ranks when the given sketch is empty.
105
+
*[Simple error reply]({{< relref "/develop/reference/protocol-spec#simple-errors" >}}) in these cases: the given key does not exist or is of an incorrect type, rank parsing errors, or incorrect number of arguments.
0 commit comments