Package org.redisson.api
Interface RHyperLogLogRx<V>
-
- Type Parameters:
V
- type of stored values
- All Superinterfaces:
RExpirableRx
,RObjectRx
public interface RHyperLogLogRx<V> extends RExpirableRx
Probabilistic data structure that lets you maintain counts of millions of items with extreme space efficiency. RxJava2 interface.- Author:
- Nikita Koksharov
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description io.reactivex.rxjava3.core.Single<Boolean>
add(V obj)
Adds element into this structure.io.reactivex.rxjava3.core.Single<Boolean>
addAll(Collection<V> objects)
Adds all elements contained inobjects
collection into this structureio.reactivex.rxjava3.core.Single<Long>
count()
Returns approximated number of unique elements added into this structure.io.reactivex.rxjava3.core.Single<Long>
countWith(String... otherLogNames)
Returns approximated number of unique elements added into this instances and other instances defined throughotherLogNames
.io.reactivex.rxjava3.core.Completable
mergeWith(String... otherLogNames)
Merges multiple instances into this instance.-
Methods inherited from interface org.redisson.api.RExpirableRx
clearExpire, expire, expireAt, expireAt, expireAt, remainTimeToLive
-
Methods inherited from interface org.redisson.api.RObjectRx
addListener, copy, delete, dump, getCodec, getIdleTime, getName, isExists, migrate, move, removeListener, rename, renamenx, restore, restore, restoreAndReplace, restoreAndReplace, sizeInMemory, touch, unlink
-
-
-
-
Method Detail
-
add
io.reactivex.rxjava3.core.Single<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
io.reactivex.rxjava3.core.Single<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
io.reactivex.rxjava3.core.Single<Long> count()
Returns approximated number of unique elements added into this structure.- Returns:
- approximated number of unique elements added into this structure
-
countWith
io.reactivex.rxjava3.core.Single<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:
- number
-
mergeWith
io.reactivex.rxjava3.core.Completable mergeWith(String... otherLogNames)
Merges multiple instances into this instance.- Parameters:
otherLogNames
- - name of instances- Returns:
- void
-
-