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 Detail

      • addAsync

        RFuture<Boolean> addAsync(V obj)
        Adds element into this structure.
        Parameters:
        obj - - element to add
        Returns:
        true if object has been added or false if it was already added
      • addAllAsync

        RFuture<Boolean> addAllAsync(Collection<V> objects)
        Adds all elements contained in objects collection into this structure
        Parameters:
        objects - - elements to add
        Returns:
        true if at least one object has been added or false if all were already added
      • countAsync

        RFuture<Long> countAsync()
        Returns approximated number of unique elements added into this structure.
        Returns:
        approximated number of unique elements added into this structure
      • countWithAsync

        RFuture<Long> countWithAsync(String... otherLogNames)
        Returns approximated number of unique elements added into this instances and other instances defined through otherLogNames.
        Parameters:
        otherLogNames - - name of instances
        Returns:
        number
      • mergeWithAsync

        RFuture<Void> mergeWithAsync(String... otherLogNames)
        Merges multiple instances into this instance.
        Parameters:
        otherLogNames - - name of instances
        Returns:
        void