I'm providing a bucketed hash store as shown below. The bucketed hash store size is 4480113. It works for a different set of keys.
Also, the program hangs after the exception, it's not being terminated correctly due to running threads?
store = new BucketedHashStore<>(TransformationStrategies.rawByteArray(), outputPath.getParent().toFile());
// adding 4480113 keys to store in a loop
store.add(hash);
mph = new GOVMinimalPerfectHashFunction.Builder<byte[]>()
.store(store)
.build();
Caused by: java.lang.IllegalStateException: You provided no keys, but the bucketed hash store was not checked
at it.unimi.dsi.sux4j.mph.GOVMinimalPerfectHashFunction.<init>(GOVMinimalPerfectHashFunction.java:466)
at it.unimi.dsi.sux4j.mph.GOVMinimalPerfectHashFunction$Builder.build(GOVMinimalPerfectHashFunction.java:271)
I'm providing a bucketed hash store as shown below. The bucketed hash store size is 4480113. It works for a different set of keys.
Also, the program hangs after the exception, it's not being terminated correctly due to running threads?