Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(tree): refactor RangeMap #23353

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

alex-pardes
Copy link
Contributor

@alex-pardes alex-pardes commented Dec 17, 2024

This PR refactors RangeMap

Key Changes

  1. Encapsulated RangeEntry: Removed direct exposure of RangeEntry
  2. Improved Documentation: Added comprehensive comments to RangeMap, RangeEntry, RangeQueryResult, and all other methods.
  3. Unified Delete and Set Operations: Removed duplication by allowing undefined values in setInRange, effectively merging delete and set operations.
  4. Optional Start Field in RangeQueryResult: Added an optional start field to RangeQueryResult to support scenarios requiring the start index of a range (e.g. in MemoizedIdRangeAllocator)

ADO items

AB#7413, AB#7414

@github-actions github-actions bot added area: dds Issues related to distributed data structures area: dds: tree base: main PRs targeted against main branch labels Dec 17, 2024
@alex-pardes alex-pardes changed the title feat(tree): refactor rangeMap feat(tree): refactor RangeMap Dec 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: dds: tree area: dds Issues related to distributed data structures base: main PRs targeted against main branch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants