Skip to content

zhaolihe/java-hll

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

java-hll

detail using method please see https://github.com/aggregateknowledge/java-hll

this project which fork https://github.com/aggregateknowledge/java-hll implement the method of exists in hll class that to check whether having the rawValue already.

Usage

final int seed = 123456;
final Murmur3_128HashFunction hash = new Murmur3_128HashFunction(seed);
final Hasher hasher = hash.newHasher();
hasher.putLong(1L/*value to hash*/);

final long rawValue = hasher.hash().asLong();
Hll hll = new Hll(12,8);
boolean hasValue = hll.exists(rawValue);

About

Java library for the HyperLogLog algorithm

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages

  • Java 100.0%