tisonkun opened a new pull request, #350: URL: https://github.com/apache/datasketches-rust/pull/350
## Summary Move `JaccardSimilarity` to `datasketches::common::JaccardSimilarity` and make `datasketches::thetacommon` crate-private (`pub(crate)`). ## Background & Rationale - **Current state**: `datasketches::thetacommon` was kept public at the crate root in #178 solely to expose the shared `JaccardSimilarity` result struct, leaking an internal module boundary that breaks the crate's one-module-per-feature + shared-utilities layout. - **Why not re-export in both `theta` and `tuple`**: Even when `theta::JaccardSimilarity` and `tuple::JaccardSimilarity` alias the same underlying type, offering two algorithm-scoped import paths for one shared value type creates ambiguous imports (for example, importing `theta::JaccardSimilarity` while calling `TupleJaccardSimilarity`). - **Why `datasketches::common`**: `JaccardSimilarity` is a plain estimate-and-bounds value type (`lower_bound`, `estimate`, `upper_bound`) independent of sketch internals, matching `NumStdDev`, `ResizeFactor`, and `SearchCriteria` (moved from `req` to `common` in `v0.6.0`). Giving it one canonical path under `datasketches::common` allows sealing `thetacommon` cleanly. cc @ariesdevil -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
