![JAR search and dependency download from the Maven repository](/logo.png)
org.infinispan.server.resp.hll.internal.HLLRepresentation Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of infinispan-server-resp Show documentation
Show all versions of infinispan-server-resp Show documentation
Infinispan Resp Protocol Server
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