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 9611f37af58a68a7f8788f14e3e121d111f7b6b3 Author: tison <[email protected]> AuthorDate: Sat Jul 25 21:42:38 2026 +0800 refactor(theta): clarify raw A-not-B type name --- datasketches/src/theta/a_not_b.rs | 10 +++++----- datasketches/src/thetacommon/a_not_b.rs | 4 ++-- datasketches/src/tuple/a_not_b.rs | 8 ++++---- 3 files changed, 11 insertions(+), 11 deletions(-) diff --git a/datasketches/src/theta/a_not_b.rs b/datasketches/src/theta/a_not_b.rs index 559d754..7f8a8fc 100644 --- a/datasketches/src/theta/a_not_b.rs +++ b/datasketches/src/theta/a_not_b.rs @@ -18,14 +18,14 @@ //! Theta sketch set difference (`A and not B`). //! //! [`ThetaAnotB`] computes the set difference of two Theta sketches: the keys retained in `A` -//! that are not present in `B`. The logic lives in the shared raw operator (`RawAnotB`) that also -//! drives the Tuple a-not-B; Theta entries carry no summary, so nothing needs to be combined. +//! that are not present in `B`. The logic lives in the shared raw operator (`RawThetaAnotB`) that +//! also drives the Tuple a-not-B; Theta entries carry no summary, so nothing needs to be combined. use crate::error::Error; use crate::hash::DEFAULT_UPDATE_SEED; use crate::theta::CompactThetaSketch; use crate::theta::ThetaSketchView; -use crate::thetacommon::a_not_b::RawAnotB; +use crate::thetacommon::a_not_b::RawThetaAnotB; /// Set difference operator (`A and not B`) for Theta sketches. /// @@ -49,7 +49,7 @@ use crate::thetacommon::a_not_b::RawAnotB; /// ``` #[derive(Debug, Clone, Copy)] pub struct ThetaAnotB { - raw: RawAnotB, + raw: RawThetaAnotB, } impl ThetaAnotB { @@ -62,7 +62,7 @@ impl ThetaAnotB { /// Creates a new set difference operator for the given `seed`. pub fn with_seed(seed: u64) -> Self { Self { - raw: RawAnotB::new(seed), + raw: RawThetaAnotB::new(seed), } } diff --git a/datasketches/src/thetacommon/a_not_b.rs b/datasketches/src/thetacommon/a_not_b.rs index 98ebae3..dbe22a0 100644 --- a/datasketches/src/thetacommon/a_not_b.rs +++ b/datasketches/src/thetacommon/a_not_b.rs @@ -30,11 +30,11 @@ use crate::thetacommon::hash_table::RawCompactParts; /// entries also carry a summary. Surviving entries are moved from `A` unchanged, so unlike the /// union and intersection this operation needs no entry-merge policy. #[derive(Debug, Clone, Copy)] -pub struct RawAnotB { +pub struct RawThetaAnotB { seed_hash: u16, } -impl RawAnotB { +impl RawThetaAnotB { /// Creates a new set difference operator for the given `seed`. pub fn new(seed: u64) -> Self { Self { diff --git a/datasketches/src/tuple/a_not_b.rs b/datasketches/src/tuple/a_not_b.rs index 5403d44..8d561cc 100644 --- a/datasketches/src/tuple/a_not_b.rs +++ b/datasketches/src/tuple/a_not_b.rs @@ -20,11 +20,11 @@ //! [`TupleAnotB`] computes the set difference of two Tuple sketches: the keys retained in `A` that //! are not present in `B`. Surviving keys keep their summaries from `A` unchanged, so unlike the //! union and intersection this operation needs no combine policy. The logic lives in the shared -//! raw operator (`RawAnotB`) that also drives the Theta a-not-B. +//! raw operator (`RawThetaAnotB`) that also drives the Theta a-not-B. use crate::error::Error; use crate::hash::DEFAULT_UPDATE_SEED; -use crate::thetacommon::a_not_b::RawAnotB; +use crate::thetacommon::a_not_b::RawThetaAnotB; use crate::tuple::sketch::CompactTupleSketch; use crate::tuple::sketch::TupleSketchView; @@ -52,7 +52,7 @@ use crate::tuple::sketch::TupleSketchView; /// ``` #[derive(Debug, Clone, Copy)] pub struct TupleAnotB { - raw: RawAnotB, + raw: RawThetaAnotB, } impl TupleAnotB { @@ -65,7 +65,7 @@ impl TupleAnotB { /// Creates a new set difference operator for the given `seed`. pub fn with_seed(seed: u64) -> Self { Self { - raw: RawAnotB::new(seed), + raw: RawThetaAnotB::new(seed), } } --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
