Skip to content

Commit 23ab79c

Browse files
fix: updates based on changes in asap_sketchlib's API
1 parent 9ac794c commit 23ab79c

11 files changed

Lines changed: 45 additions & 174 deletions

File tree

Cargo.lock

Lines changed: 19 additions & 148 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

asap-common/sketch-core/src/count_min_sketchlib.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
use asap_sketchlib::{CountMin, RegularPath, SketchInput, Vector2D};
1+
use asap_sketchlib::{CountMin, DataInput, RegularPath, Vector2D};
22

33
/// Concrete Count-Min type from asap_sketchlib when sketchlib backend is enabled.
44
/// Uses f64 counters (Vector2D<f64>) for weighted updates without integer rounding.
@@ -48,12 +48,12 @@ pub fn sketchlib_cms_update(inner: &mut SketchlibCms, key: &str, value: f64) {
4848
if value <= 0.0 {
4949
return;
5050
}
51-
let input = SketchInput::String(key.to_owned());
51+
let input = DataInput::String(key.to_owned());
5252
inner.insert_many(&input, value);
5353
}
5454

5555
/// Helper to query a sketchlib Count-Min for a key, returning f64.
5656
pub fn sketchlib_cms_query(inner: &SketchlibCms, key: &str) -> f64 {
57-
let input = SketchInput::String(key.to_owned());
57+
let input = DataInput::String(key.to_owned());
5858
inner.estimate(&input)
5959
}

0 commit comments

Comments
 (0)