This is an automated email from the ASF dual-hosted git repository. tisonkun pushed a commit to branch codex/naming-drift-audit in repository https://gitbox.apache.org/repos/asf/datasketches-rust.git
commit 01914e5341e67faf922659e53feae9333bd12625 Author: tison <[email protected]> AuthorDate: Sat Jul 25 21:42:57 2026 +0800 refactor(theta): rename hash table entry lookup --- datasketches/src/thetacommon/hash_table.rs | 2 +- datasketches/src/thetacommon/intersection.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/datasketches/src/thetacommon/hash_table.rs b/datasketches/src/thetacommon/hash_table.rs index 7e0f7fc..19aae1f 100644 --- a/datasketches/src/thetacommon/hash_table.rs +++ b/datasketches/src/thetacommon/hash_table.rs @@ -194,7 +194,7 @@ where } /// Returns a reference to the entry stored for `hash`, or `None` if the hash is not retained. - pub fn get_entry(&self, hash: u64) -> Option<&E> { + pub fn entry(&self, hash: u64) -> Option<&E> { if hash == 0 { return None; } diff --git a/datasketches/src/thetacommon/intersection.rs b/datasketches/src/thetacommon/intersection.rs index 59af528..05bbef8 100644 --- a/datasketches/src/thetacommon/intersection.rs +++ b/datasketches/src/thetacommon/intersection.rs @@ -161,7 +161,7 @@ where for entry in sketch.iter() { let hash = entry.hash(); if hash < self.table.theta() { - if let Some(existing) = self.table.get_entry(hash) { + if let Some(existing) = self.table.entry(hash) { if matched_entries.len() == max_matches { return Err(Error::invalid_argument( "max matches exceeded, possibly corrupted input sketch", --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
