You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@datasketches.apache.org by dc...@apache.org on 2024/08/15 08:08:31 UTC

(datasketches-bigquery) branch update-cpc-sketch created (now 24d9f1b)

This is an automated email from the ASF dual-hosted git repository.

dcromberge pushed a change to branch update-cpc-sketch
in repository https://gitbox.apache.org/repos/asf/datasketches-bigquery.git


      at 24d9f1b  Add missing function to CPC sketch module

This branch includes the following new commits:

     new 24d9f1b  Add missing function to CPC sketch module

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@datasketches.apache.org
For additional commands, e-mail: commits-help@datasketches.apache.org


(datasketches-bigquery) 01/01: Add missing function to CPC sketch module

Posted by dc...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

dcromberge pushed a commit to branch update-cpc-sketch
in repository https://gitbox.apache.org/repos/asf/datasketches-bigquery.git

commit 24d9f1b22f2d3f9ad45bc8c174b1a61ca2319de3
Author: David Cromberge <da...@gmail.com>
AuthorDate: Thu Aug 15 09:08:04 2024 +0100

    Add missing function to CPC sketch module
---
 cpc_sketch.cpp | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/cpc_sketch.cpp b/cpc_sketch.cpp
index 536dd42..67427b0 100644
--- a/cpc_sketch.cpp
+++ b/cpc_sketch.cpp
@@ -61,6 +61,9 @@ EMSCRIPTEN_BINDINGS(cpc_sketch) {
     .constructor(emscripten::optional_override([](uint8_t lg_k, uint64_t seed) {
       return new datasketches::cpc_union(lg_k, seed);
     }))
+    .function("updateWithSketch", emscripten::optional_override([](datasketches::cpc_union& self, const datasketches::cpc_sketch& sketch) {
+      self.update(sketch);
+    }), emscripten::allow_raw_pointers())
     .function("updateWithBytes", emscripten::optional_override([](datasketches::cpc_union& self, const std::string& bytes, uint64_t seed) {
       self.update(datasketches::cpc_sketch::deserialize(bytes.data(), bytes.size(), seed));
     }), emscripten::allow_raw_pointers())


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@datasketches.apache.org
For additional commands, e-mail: commits-help@datasketches.apache.org