Package org.redisson.api
Interface RHyperLogLogAsync<V>
-
- Type Parameters:
V
- type of stored values
- All Superinterfaces:
RExpirableAsync
,RObjectAsync
- All Known Subinterfaces:
RHyperLogLog<V>
- All Known Implementing Classes:
RedissonHyperLogLog
public interface RHyperLogLogAsync<V> extends RExpirableAsync
Probabilistic data structure that lets you maintain counts of millions of items with extreme space efficiency. Asynchronous interface.- Author:
- Nikita Koksharov
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description >
<V> objects)
Adds all elements contained inobjects
collection into this structure>
addAsync(V obj)
Adds element into this structure.>
countAsync()
Returns approximated number of unique elements added into this structure.>
... otherLogNames)
Returns approximated number of unique elements added into this instances and other instances defined throughotherLogNames
.>
... otherLogNames)
Merges multiple instances into this instance.-
Methods inherited from interface org.redisson.api.RExpirableAsync
clearExpireAsync, expireAsync, expireAsync, expireAtAsync, expireAtAsync, remainTimeToLiveAsync
-
Methods inherited from interface org.redisson.api.RObjectAsync
addListenerAsync, copyAsync, deleteAsync, dumpAsync, getIdleTimeAsync, isExistsAsync, migrateAsync, moveAsync, removeListenerAsync, renameAsync, renamenxAsync, restoreAndReplaceAsync, restoreAndReplaceAsync, restoreAsync, restoreAsync, sizeInMemoryAsync, touchAsync, unlinkAsync
-
-
-
-
Method Detail
-
addAsync
> addAsync(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
-
addAllAsync
> addAllAsync(<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
-
countAsync
> countAsync()
Returns approximated number of unique elements added into this structure.- Returns:
- approximated number of unique elements added into this structure
-
countWithAsync
> countWithAsync(... otherLogNames)
Returns approximated number of unique elements added into this instances and other instances defined throughotherLogNames
.- Parameters:
otherLogNames
- - name of instances- Returns:
- number
-
mergeWithAsync
> mergeWithAsync(... otherLogNames)
Merges multiple instances into this instance.- Parameters:
otherLogNames
- - name of instances- Returns:
- void
-
-