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 <[email protected]> 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: [email protected] For additional commands, e-mail: [email protected]
