Repository navigation
Back the ByteArray labels with the StorageTable seam (Step 2 of #422) - #426
Merged
Merged
Conversation
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]>
6 of 8 tasks
Closed
8 of 21 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Step 2 of #422 (unify store-backend acquisition): rework the ByteArray label family to consume the
StorageTableseam instead of a concreteByteArrayStore, reactively. This decouples the label logic from the in-memory store, so a later step can point the same label at an HBase-backedStorageTableby configuration alone.Part of #422.
Changes
ByteArrayHashLabel/ByteArrayIndexedLabelprimary constructor now takes aStorageTable. A secondary constructor /createoverload keeps theByteArrayStorepath by wrapping it in aMemoryStorageTable, so existing callers (Graph,LocalBackedJdbcHashLabel, tests) are unchanged.StorageTable:get/setIfNotExists/deleteIfEquals/increment/batch/scan. Reads (getSelf/get/getCountRows) fan out reactively, preserving input order.scanStoragestill 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.scanuses 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-backendAbstractLabelCompatibilityTestand the #425 pagination-contract lock); spotless clean. No wiring changed outside the label classes.AI Assistance