Package org.redisson.api
Interface RHyperLogLogReactive<V>
-
- Type Parameters:
V
- type of stored values
- All Superinterfaces:
RExpirableReactive
,RObjectReactive
public interface RHyperLogLogReactive<V> extends RExpirableReactive
Probabilistic data structure that lets you maintain counts of millions of items with extreme space efficiency. Reactive interface.- Author:
- Nikita Koksharov
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description org.reactivestreams.Publisher<Boolean>
add(V obj)
Adds element into this structure.org.reactivestreams.Publisher<Boolean>
addAll(Collection<V> objects)
Adds all elements contained inobjects
collection into this structureorg.reactivestreams.Publisher<Long>
count()
Returns approximated number of unique elements added into this structure.org.reactivestreams.Publisher<Long>
countWith(String... otherLogNames)
Returns approximated number of unique elements added into this instances and other instances defined throughotherLogNames
.org.reactivestreams.Publisher<Void>
mergeWith(String... otherLogNames)
Merges multiple instances into this instance.-
Methods inherited from interface org.redisson.api.RExpirableReactive
clearExpire, expire, expireAt, expireAt, remainTimeToLive
-
-
-
-
Method Detail
-
add
org.reactivestreams.Publisher<Boolean> add(V obj)
Adds element into this structure.- Parameters:
obj
- - element to add- Returns:
true
if object has been added orfalse
if it was already added
-
addAll
org.reactivestreams.Publisher<Boolean> addAll(Collection<V> objects)
Adds all elements contained inobjects
collection into this structure- Parameters:
objects
- - elements to add- Returns:
true
if at least one object has been added orfalse
if all were already added
-
count
org.reactivestreams.Publisher<Long> count()
Returns approximated number of unique elements added into this structure.- Returns:
- approximated number of unique elements added into this structure
-
countWith
org.reactivestreams.Publisher<Long> countWith(String... otherLogNames)
Returns approximated number of unique elements added into this instances and other instances defined throughotherLogNames
.- Parameters:
otherLogNames
- - name of instances- Returns:
-
-