The docs say that the log2m parameter must "be at least 4 and at most 31", but it seems that 30 is the highest possible value.
The following line raises a NegativeArraySizeException:
new HLL(31, 8, -1, true, HLLType.FULL);
Here's the full stack trace:
Exception in thread "main" java.lang.NegativeArraySizeException
at net.agkn.hll.util.BitVector.<init>(BitVector.java:68)
at net.agkn.hll.HLL.initializeStorage(HLL.java:434)
at net.agkn.hll.HLL.<init>(HLL.java:202)
at Spike.main(Spike.java:7)
The docs say that the
log2m
parameter must "be at least 4 and at most 31", but it seems that 30 is the highest possible value.The following line raises a
NegativeArraySizeException
:Here's the full stack trace:
If I change 31 to 30 it works fine.