Package org.redisson.api
Interface RHyperLogLogReactive<V>
- Type Parameters:
V
- type of stored values
- All Superinterfaces:
RExpirableReactive
,RObjectReactive
Probabilistic data structure that lets you maintain counts of millions of items with extreme space efficiency.
Reactive interface.
- Author:
- Nikita Koksharov
-
Method Summary
Modifier and TypeMethodDescriptionreactor.core.publisher.Mono<Boolean>
Adds element into this structure.reactor.core.publisher.Mono<Boolean>
addAll
(Collection<V> objects) Adds all elements contained inobjects
collection into this structurereactor.core.publisher.Mono<Long>
count()
Returns approximated number of unique elements added into this structure.reactor.core.publisher.Mono<Long>
Returns approximated number of unique elements added into this instances and other instances defined throughotherLogNames
.reactor.core.publisher.Mono<Void>
Merges multiple instances into this instance.Methods inherited from interface org.redisson.api.RExpirableReactive
clearExpire, expire, expire, expire, expireAt, expireAt, expireIfGreater, expireIfGreater, expireIfLess, expireIfLess, expireIfNotSet, expireIfNotSet, expireIfSet, expireIfSet, getExpireTime, remainTimeToLive
Methods inherited from interface org.redisson.api.RObjectReactive
addListener, copy, delete, dump, getCodec, getIdleTime, getName, isExists, migrate, move, removeListener, rename, renamenx, restore, restore, restoreAndReplace, restoreAndReplace, sizeInMemory, touch, unlink
-
Method Details
-
add
Adds element into this structure.- Parameters:
obj
- - element to add- Returns:
true
if object has been added orfalse
if it was already added
-
addAll
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
reactor.core.publisher.Mono<Long> count()Returns approximated number of unique elements added into this structure.- Returns:
- approximated number of unique elements added into this structure
-
countWith
Returns approximated number of unique elements added into this instances and other instances defined throughotherLogNames
.- Parameters:
otherLogNames
- - name of instances- Returns:
- number
-
mergeWith
Merges multiple instances into this instance.- Parameters:
otherLogNames
- - name of instances- Returns:
- void
-