You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@datasketches.apache.org by le...@apache.org on 2020/04/30 17:05:07 UTC
[incubator-datasketches-characterization] branch master updated:
Update HllJavaCppGenerator Test using
getResult(HLL_8).toUpdatableByteArray().
This is an automated email from the ASF dual-hosted git repository.
leerho pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-datasketches-characterization.git
The following commit(s) were added to refs/heads/master by this push:
new f7d9975 Update HllJavaCppGenerator Test using getResult(HLL_8).toUpdatableByteArray().
f7d9975 is described below
commit f7d997532e7332e8abf4360da33f0f7641e5cb72
Author: Lee Rhodes <le...@users.noreply.github.com>
AuthorDate: Thu Apr 30 10:04:49 2020 -0700
Update HllJavaCppGenerator Test using
getResult(HLL_8).toUpdatableByteArray().
This did not change any of the binary files.
---
.../datasketches/characterization/hll/HllJavaCppGenerator.java | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/src/main/java/org/apache/datasketches/characterization/hll/HllJavaCppGenerator.java b/src/main/java/org/apache/datasketches/characterization/hll/HllJavaCppGenerator.java
index 7f4842b..7a65dc4 100644
--- a/src/main/java/org/apache/datasketches/characterization/hll/HllJavaCppGenerator.java
+++ b/src/main/java/org/apache/datasketches/characterization/hll/HllJavaCppGenerator.java
@@ -154,7 +154,7 @@ public class HllJavaCppGenerator {
}
private void genResultSketches() {
- pw = Files.openPrintWriter(path + "FileCombinationsList.txt");
+ //pw = Files.openPrintWriter(path + "FileCombinationsList.txt");
for (int i = 0; i < 4; i++) {
final int lgKSeq = lgKSeqArr[i];
final int maxLgK = baseLgK + ((lgKSeq & 4) > 0 ? 1 : 0);
@@ -177,15 +177,15 @@ public class HllJavaCppGenerator {
final byte[] srcSkbin = readByteArrayFromFileName(path + srcFname + ".bin");
final HllSketch srcSk = HllSketch.heapify(srcSkbin);
union.update(srcSk);
- final byte[] uSkbin = union.toUpdatableByteArray();
+ final byte[] uSkbin = union.getResult(HLL_8).toUpdatableByteArray();
writeByteArrayToFile(uSkbin, path + uFname + ".bin");
}
}
}
}
- pw.flush();
- pw.close();
- pw = null;
+ //pw.flush();
+ //pw.close();
+ //pw = null;
}
private static byte[] readByteArrayFromFileName(final String fullFileName) {
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@datasketches.apache.org
For additional commands, e-mail: commits-help@datasketches.apache.org