Skip to content

Back the ByteArray labels with the StorageTable seam (Step 2 of #422) - #426

Merged
em3s merged 1 commit into
mainfrom
feat/issue-422-bytearray-storagetable
Jul 16, 2026
Merged

em3s merged 1 commit into
mainfrom
feat/issue-422-bytearray-storagetable

Conversation

@em3s

@em3s em3s commented Jul 16, 2026

Copy link
Copy Markdown
Contributor

Summary

Step 2 of #422 (unify store-backend acquisition): rework the ByteArray label family to consume the StorageTable seam instead of a concrete ByteArrayStore, reactively. This decouples the label logic from the in-memory store, so a later step can point the same label at an HBase-backed StorageTable by configuration alone.

Part of #422.

Changes

  • ByteArrayHashLabel / ByteArrayIndexedLabel primary constructor now takes a StorageTable. A secondary constructor / create overload keeps the ByteArrayStore path by wrapping it in a MemoryStorageTable, so existing callers (Graph, LocalBackedJdbcHashLabel, tests) are unchanged.
  • All store access goes through StorageTable: get / setIfNotExists / deleteIfEquals / increment / batch / scan. Reads (getSelf / get / getCountRows) fan out reactively, preserving input order.
  • scanStorage still applies the start-exclusive / end-inclusive bounds in the label (not pushed to the backend), preserving the contract locked in Lock the exclusive-start scan pagination contract (pre-Step 2 of #422) #425 — StorageTable.scan uses the opposite HBase-native convention, so the trimming stays in the label.

How to Test

./gradlew :engine:test :server:test — green (623 engine tests, incl. the cross-backend AbstractLabelCompatibilityTest and the #425 pagination-contract lock); spotless clean. No wiring changed outside the label classes.

AI Assistance

  • This PR was written with AI assistance.
    • Tool / model: Claude Code (Opus 4.8)

Rework ByteArrayHashLabel/ByteArrayIndexedLabel to talk to a StorageTable
instead of a concrete ByteArrayStore, reactively (Step 2 of #422). This
decouples the label logic from the in-memory store so a later step can point
the same label at an HBase-backed StorageTable via config alone.

- Primary constructor now takes a StorageTable; a secondary constructor keeps
  the ByteArrayStore path by wrapping it in a MemoryStorageTable, so existing
  callers (Graph, LocalBackedJdbcHashLabel, tests) are unchanged.
- All store access goes through StorageTable: get / setIfNotExists /
  deleteIfEquals / increment / batch / scan.
- scanStorage still applies the start-exclusive / end-inclusive bounds in the
  label (not pushed to the backend), preserving the contract locked in #425
  regardless of StorageTable.scan's own convention.

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
@dosubot dosubot Bot added size:L This PR changes 100-499 lines, ignoring generated files. enhancement New feature or request labels Jul 16, 2026
@em3s
em3s merged commit 4c9090a into main Jul 16, 2026
3 checks passed
@em3s
em3s deleted the feat/issue-422-bytearray-storagetable branch July 16, 2026 09:57
@em3s em3s self-assigned this Jul 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 size:L This PR changes 100-499 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant