Class ReactiveHyperLogLogCommandsImpl<K,​V>

    • Method Detail

      • pfadd

        @SafeVarargs
        public final io.smallrye.mutiny.Uni<Boolean> pfadd​(K key,
                                                           V... values)
        Description copied from interface: ReactiveHyperLogLogCommands
        Execute the command PFADD. Summary: Adds the specified elements to the specified HyperLogLog. Group: hyperloglog Requires Redis 2.8.9
        Specified by:
        pfadd in interface ReactiveHyperLogLogCommands<K,​V>
        Parameters:
        key - the key
        values - the values
        Returns:
        true at least 1 HyperLogLog internal register was altered. 0 otherwise.
      • pfmerge

        @SafeVarargs
        public final io.smallrye.mutiny.Uni<Void> pfmerge​(K destination,
                                                          K... sources)
        Description copied from interface: ReactiveHyperLogLogCommands
        Execute the command PFMERGE. Summary: Merge N different HyperLogLogs into a single one. Group: hyperloglog Requires Redis 2.8.9
        Specified by:
        pfmerge in interface ReactiveHyperLogLogCommands<K,​V>
        Parameters:
        destination - the key
        sources - the source keys
        Returns:
        a Uni emitting a null item on completion
      • pfcount

        @SafeVarargs
        public final io.smallrye.mutiny.Uni<Long> pfcount​(K... keys)
        Description copied from interface: ReactiveHyperLogLogCommands
        Execute the command PFCOUNT. Summary: Return the approximated cardinality of the set(s) observed by the HyperLogLog at key(s). Group: hyperloglog Requires Redis 2.8.9
        Specified by:
        pfcount in interface ReactiveHyperLogLogCommands<K,​V>
        Returns:
        The approximated number of unique elements observed via PFADD.