Skip to content

refactor: name sketch and population statistic requests - #549

Merged
zzylol merged 2 commits into
mainfrom
refactor/summary-statistic-names
Oct 2, 2026
Merged

zzylol merged 2 commits into
mainfrom
refactor/summary-statistic-names

Conversation

@zzylol

@zzylol zzylol commented Oct 2, 2026 •

Copy link
Copy Markdown
Contributor

Separates two terminology changes from #536 so they can be reviewed independently of #511's operator/scalar design.

Before this PR: SketchQuery describes the statistic to extract from a built sketch, and PopulationReadout describes the statistic over a maintained population. The names suggest a query or execution action rather than the requested result.

After this PR: these enums are named SketchStatistic and PopulationStatistic. For example, SketchStatistic::TopK { k: 10 } and PopulationStatistic::TopK { k: 5 } still request exactly the same results. Imports, reexports, callers, tests, and current docs use the new names. The singular form describes one requested statistic per enum value.

This is a Rust API naming change: variants, parameters, algorithms, and Serde representations are unchanged. It does not introduce the unified IR or rename execution methods. #536 targets this branch so these renames disappear from its incremental diff.

Validation: types and mapping tests/doctests; workspace all-target/all-feature Clippy with warnings denied; formatting and diff checks.

Stack navigation: #535 is merged; next: #536. The dependent stack has been restacked and pushed.

Comment thread crates/asap-aware-mapping/src/replacement.rs
Comment thread crates/asap-aware-mapping/src/maintained_population.rs
@zzylol
zzylol merged commit effd572 into main Oct 2, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant