Skip to content

Comments

Add support for zero and negative value indexing in BinaryIndexers#566

Open
fh-ms wants to merge 5 commits intomainfrom
gigamap-binary-indexer-update
Open

Add support for zero and negative value indexing in BinaryIndexers#566
fh-ms wants to merge 5 commits intomainfrom
gigamap-binary-indexer-update

Conversation

@fh-ms
Copy link
Contributor

@fh-ms fh-ms commented Feb 20, 2026

What has changed

  • Introduced sentinel values in numerical BinaryIndexers to handle zero and negative indexing.
  • Added comprehensive tests for zero and negative values, and edge cases like Long.MAX_VALUE.
  • Adjusted BinaryUUIDIndex tests to incorporate zero-component UUID scenarios.

Why are these changes relevant?

These updates bridge a gap in numerical indexing handling and improve test coverage with the ability to manage zero and negative values effectively.

Other notes

No changes made to unrelated components.
Consistency ensured across all supported numerical types.

…naryIndexers.

- Introduced sentinel values to handle zero for all numerical indexers (Byte, Short, Integer, Long, Float, Double).
- Updated tests to validate zero and negative value handling.
- Added strict validation and sentinel logic for `Long.MAX_VALUE` as a reserved key.
- Adjusted BinaryUUIDIndex test cases to include scenarios with zero components in UUIDs.
- Simplified structure of test cases to improve readability and maintainability.
@fh-ms fh-ms requested a review from zdenek-jonas February 20, 2026 10:09
@fh-ms fh-ms added enhancement New feature or request GigaMap labels Feb 20, 2026
@fh-ms fh-ms added this to the 4.0.0 milestone Feb 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request GigaMap

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant