All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.infinispan.server.resp.hll.internal.HLLRepresentation Maven / Gradle / Ivy

There is a newer version: 15.1.4.Final
Show newest version
package org.infinispan.server.resp.hll.internal;

/**
 * The base class for the HyperLogLog representations.
 *
 * @since 15.0
 */
public interface HLLRepresentation {

   /**
    * Add the given {@param data} to the representation set.
    *
    * @param data: The data to include.
    * @return true if the data was added, and false otherwise.
    */

   boolean set(byte[] data);

   /**
    * Estimates the cardinality of the set.
    *
    * @return An estimation of the real cardinality.
    */
   long cardinality();
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy