Interface HyperLogLogOperations<K,V>


@NullUnmarked public interface HyperLogLogOperations<K,V>
Since:
1.5
Author:
Christoph Strobl
  • Method Summary

    Modifier and Type
    Method
    Description
    add(@NonNull K key, @NonNull V @NonNull ... values)
    Adds the given values to the key.
    void
    delete(@NonNull K key)
    Removes the given key.
    size(@NonNull K @NonNull ... keys)
    Gets the current number of elements within the key.
    union(@NonNull K destination, @NonNull K @NonNull ... sourceKeys)
    Merges all values of given sourceKeys into destination key.
  • Method Details

    • add

      Long add(@NonNull K key, @NonNull V @NonNull ... values)
      Adds the given values to the key.
      Parameters:
      key - must not be null.
      values - must not be null.
      Returns:
      1 of at least one of the values was added to the key; 0 otherwise. null when used in pipeline / transaction.
    • size

      Long size(@NonNull K @NonNull ... keys)
      Gets the current number of elements within the key.
      Parameters:
      keys - must not be null or empty.
      Returns:
      null when used in pipeline / transaction.
    • union

      Long union(@NonNull K destination, @NonNull K @NonNull ... sourceKeys)
      Merges all values of given sourceKeys into destination key.
      Parameters:
      destination - key of HyperLogLog to move source keys into.
      sourceKeys - must not be null or empty.
      Returns:
      null when used in pipeline / transaction.
    • delete

      void delete(@NonNull K key)
      Removes the given key.
      Parameters:
      key - must not be null.