Package org.redisson.api
Interface RHyperLogLog<V>
- Type Parameters:
V- type of stored values
- All Superinterfaces:
RExpirable,RExpirableAsync,RHyperLogLogAsync<V>,RObject,RObjectAsync
- All Known Implementing Classes:
RedissonHyperLogLog
Probabilistic data structure that lets you maintain counts of millions of items with extreme space efficiency.
- Author:
- Nikita Koksharov
-
Method Summary
Modifier and TypeMethodDescriptionbooleanAdds element into this structure.booleanaddAll(Collection<V> objects) Adds all elements contained inobjectscollection into this structurelongcount()Returns approximated number of unique elements added into this structure.longReturns approximated number of unique elements added into this instances and other instances defined throughotherLogNames.voidMerges multiple instances into this instance.Methods inherited from interface org.redisson.api.RExpirable
clearExpire, expire, expire, expire, expireAt, expireAt, expireIfGreater, expireIfGreater, expireIfLess, expireIfLess, expireIfNotSet, expireIfNotSet, expireIfSet, expireIfSet, getExpireTime, remainTimeToLiveMethods inherited from interface org.redisson.api.RExpirableAsync
clearExpireAsync, expireAsync, expireAsync, expireAsync, expireAtAsync, expireAtAsync, expireIfGreaterAsync, expireIfGreaterAsync, expireIfLessAsync, expireIfLessAsync, expireIfNotSetAsync, expireIfNotSetAsync, expireIfSetAsync, expireIfSetAsync, getExpireTimeAsync, remainTimeToLiveAsyncMethods inherited from interface org.redisson.api.RHyperLogLogAsync
addAllAsync, addAsync, countAsync, countWithAsync, mergeWithAsyncMethods inherited from interface org.redisson.api.RObject
addListener, copy, delete, dump, getCodec, getIdleTime, getName, isExists, migrate, move, removeListener, rename, renamenx, restore, restore, restoreAndReplace, restoreAndReplace, sizeInMemory, touch, unlinkMethods 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 Details
-
add
Adds element into this structure.- Parameters:
obj- - element to add- Returns:
trueif object has been added orfalseif it was already added
-
addAll
Adds all elements contained inobjectscollection into this structure- Parameters:
objects- - elements to add- Returns:
trueif at least one object has been added orfalseif all were already added
-
count
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
-