Interface ReactiveHyperLogLogOperations<K,V>


public interface ReactiveHyperLogLogOperations<K,V>
Reactive Redis operations for working on a HyperLogLog multiset.
Since:
2.0
Author:
Mark Paluch
  • Method Summary

    Modifier and Type
    Method
    Description
    reactor.core.publisher.Mono<Long>
    add(K key, V... values)
    Adds the given values to the key.
    reactor.core.publisher.Mono<Boolean>
    delete(K key)
    Removes the given key.
    reactor.core.publisher.Mono<Long>
    size(K... keys)
    Gets the current number of elements within the key.
    reactor.core.publisher.Mono<Boolean>
    union(K destination, K... sourceKeys)
    Merges all values of given sourceKeys into destination key.
  • Method Details

    • add

      reactor.core.publisher.Mono<Long> add(K key, V... 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.
    • size

      reactor.core.publisher.Mono<Long> size(K... keys)
      Gets the current number of elements within the key.
      Parameters:
      keys - must not be null or empty.
      Returns:
    • union

      reactor.core.publisher.Mono<Boolean> union(K destination, K... 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.
    • delete

      reactor.core.publisher.Mono<Boolean> delete(K key)
      Removes the given key.
      Parameters:
      key - must not be null.