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 2021/11/30 19:33:08 UTC
[datasketches-website] branch master updated: Fix example: update() => union()
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/datasketches-website.git
The following commit(s) were added to refs/heads/master by this push:
new 70ca104 Fix example: update() => union()
new 7abd1c1 Merge pull request #108 from jacobtolar/patch-1
70ca104 is described below
commit 70ca1044fb393fd4aa09e6e9d3df5d41d0f8bb2a
Author: jacobtolar <ja...@sheckel.net>
AuthorDate: Tue Nov 30 12:19:50 2021 -0600
Fix example: update() => union()
update() was deprecated and replaced by union(), and as of 3.0 has been removed.
https://github.com/apache/datasketches-java/pull/367/files
There are probably more examples that should be fixed, I just noticed this one was incorrect.
---
docs/Tuple/TupleJavaExample.md | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/docs/Tuple/TupleJavaExample.md b/docs/Tuple/TupleJavaExample.md
index 1be7657..d8400e2 100644
--- a/docs/Tuple/TupleJavaExample.md
+++ b/docs/Tuple/TupleJavaExample.md
@@ -73,8 +73,8 @@ layout: doc_page
ArrayOfDoublesSketch sketch2 = ArrayOfDoublesSketches.wrapSketch(Memory.wrap(bytes2));
ArrayOfDoublesUnion union = new ArrayOfDoublesSetOperationBuilder().buildUnion();
- union.update(sketch1);
- union.update(sketch2);
+ union.union(sketch1);
+ union.union(sketch2);
ArrayOfDoublesSketch unionResult = union.getResult();
System.out.println("Union unique count estimate: " + unionResult.getEstimate());
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@datasketches.apache.org
For additional commands, e-mail: commits-help@datasketches.apache.org