K - Key type.V - Value type.public interface NodeSelectionCMSAsyncCommands<K,V>
| Modifier and Type | Method and Description |
|---|---|
AsyncExecutions<List<Long>> |
cmsIncrBy(K key,
IncrementPair<V>... pairs)
Increases the count of several items by their given increments in a single call.
|
AsyncExecutions<List<Long>> |
cmsIncrBy(K key,
IncrementPair<V> pair)
Increases the count of an item by the given increment.
|
AsyncExecutions<CMSInfoValue> |
cmsInfo(K key)
Returns width, depth and total count of the sketch.
|
AsyncExecutions<String> |
cmsInitByDim(K key,
long width,
long depth)
Initializes a Count-Min Sketch to the dimensions specified by the user.
|
AsyncExecutions<String> |
cmsInitByProb(K key,
double error,
double probability)
Initializes a Count-Min Sketch to accommodate requested tolerances.
|
AsyncExecutions<String> |
cmsMerge(K destination,
K... sources)
Merges several source sketches into a single destination sketch.
|
AsyncExecutions<String> |
cmsMerge(K destination,
K source)
Merges a single source sketch into a destination sketch.
|
AsyncExecutions<String> |
cmsMerge(K destination,
MergePair<K>... sources)
Merges several source sketches into a single destination sketch, scaling each source's contribution by the weight paired
with it.
|
AsyncExecutions<String> |
cmsMerge(K destination,
MergePair<K> pair)
Merges a single source sketch into a destination sketch, scaling its contribution by the weight paired with it.
|
AsyncExecutions<List<Long>> |
cmsQuery(K key,
V... values)
Returns the count for one or more items in a sketch.
|
AsyncExecutions<List<Long>> |
cmsQuery(K key,
V value)
Returns the count for one item in a sketch.
|
AsyncExecutions<List<Long>> cmsIncrBy(K key, IncrementPair<V> pair)
key - the key.pair - the item paired with the increment to add to its count.AsyncExecutions<List<Long>> cmsIncrBy(K key, IncrementPair<V>... pairs)
key - the key.pairs - the items paired with the increment to add to each item's count.pairs.AsyncExecutions<CMSInfoValue> cmsInfo(K key)
key - the key.CMSInfoValue holding the sketch information.AsyncExecutions<String> cmsInitByDim(K key, long width, long depth)
key - the key. An error is returned if the key already exists.width - the number of counters in each array. Reduces the error size.depth - the number of counter-arrays. Reduces the probability of an error exceeding the estimated size.OK if CMS.INITBYDIM was executed correctly.AsyncExecutions<String> cmsInitByProb(K key, double error, double probability)
key - the key. An error is returned if the key already exists.error - estimate size of the error.probability - the desired probability for inflated count.OK if CMS.INITBYPROB was executed correctly.AsyncExecutions<String> cmsMerge(K destination, K source)
destination - the name of destination sketch. Must be initialized.source - the name of the source sketch to merge into destination.OK if CMS.MERGE was executed correctly.AsyncExecutions<String> cmsMerge(K destination, K... sources)
destination - the name of destination sketch. Must be initialized.sources - the names of the source sketches to merge into destination.OK if CMS.MERGE was executed correctly.AsyncExecutions<String> cmsMerge(K destination, MergePair<K> pair)
destination - the name of destination sketch. Must be initialized.pair - the source sketch to merge into destination, paired with the multiplication factor applied to it
before merging.OK if CMS.MERGE was executed correctly.AsyncExecutions<String> cmsMerge(K destination, MergePair<K>... sources)
destination - the name of destination sketch. Must be initialized.sources - the source sketches to merge into destination, each paired with the multiplication factor applied
to it before merging.OK if CMS.MERGE was executed correctly.AsyncExecutions<List<Long>> cmsQuery(K key, V value)
key - the key.value - the item to query.AsyncExecutions<List<Long>> cmsQuery(K key, V... values)
key - the key.values - the items to query.values.Copyright © 2026 lettuce.io. All rights reserved.