aggregateknowledge / java-hll

Java library for the HyperLogLog algorithm
http://research.neustar.biz/2013/12/24/open-source-release-java-hll/
Apache License 2.0
311 stars 70 forks source link

Creating test for some bug in serialization/unserialization #2

Closed yerenkow closed 10 years ago

yerenkow commented 10 years ago

Currently, it fails with such messages:

java.lang.IllegalArgumentException: Word length must be larger than 4 and less than or equal to 64. (was: 1) at net.agkn.hll.serialization.BigEndianAscendingWordSerializer.(BigEndianAscendingWordSerializer.java:77) at net.agkn.hll.serialization.SchemaVersionOne.getSerializer(SchemaVersionOne.java:111) at net.agkn.hll.HLL.toBytes(HLL.java:894) at net.agkn.hll.HLL.toBytes(HLL.java:847) at net.agkn.hll.serialization.HllSerializationTest.runHllSerializeTest(HllSerializationTest.java:31)

blinsay commented 10 years ago

Thanks for pointing this out. I'm working on a fix now.