Repository navigation
Add ByteArrayStore-backed Hash/Indexed labels (stacked) - #419
Merged
Merged
Conversation
Add ByteArrayHashLabel and ByteArrayIndexedLabel, storage-agnostic twins of the HBase labels backed by an in-memory ByteArrayStore. Every edge kind is encoded in the row key, so a single ordered store reproduces the HBase semantics without table provisioning. ByteArrayLabelSpec drives them without a Graph, covering the hash round-trip, delete, degree counter, and indexed range scan. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
1 task done
Replace ByteArrayLabelSpec with AbstractLabelCompatibilityTest, a backend-agnostic JUnit 5 suite covering the hash round-trip, delete, degree counter, and indexed range scan. ByteArrayLabelCompatibilityTest and HBaseLabelCompatibilityTest run the same suite against the ByteArrayStore- and mock-HBase-backed labels, so the twins are held to identical semantics. Co-Authored-By: Claude Opus 4.8 <[email protected]>
Move the duplicated hash/indexed LabelEntity definitions into AbstractLabelCompatibilityTest so each backend subclass only wraps them in its own label, removing the copy that lived in both subclasses. Co-Authored-By: Claude Opus 4.8 <[email protected]>
Contributor
Author
|
Optimistic merge. |
1 task done
em3s
added a commit
that referenced
this pull request
Jul 16, 2026
* Add ByteArrayStore-backed Hash/Indexed labels (#419) * style: apply spotless formatting Co-Authored-By: Claude Opus 4.8 <[email protected]> --------- Co-authored-by: Claude Opus 4.8 <[email protected]>
1 task done
Contributor
Author
|
This has been applied to main in #421. |
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
Add
ByteArrayHashLabelandByteArrayIndexedLabel— storage-agnostic twins of the HBase labels backed by an in-memoryByteArrayStore.BytesKeyValueEdgeEncoderpacks every edge kind into the row key and only writes the default column, so a single orderedByteArrayStorereproduces HBase read/write/scan semantics andIndexedLabelMixinis reused as-is — no HBase table provisioning needed (unlike the overlay in #390).Second of a 3-PR stack (stacked on #418):
ByteArrayStore-backed labels.Changes
ByteArrayHashLabel: hash/counter/lock ops over aByteArrayStore, mirroringHBaseHashLabelon the wire (writes returned as deferredMutationRequests, applied inhandleDeferredRequests).ByteArrayIndexedLabel: reusesIndexedLabelMixinverbatim for index maintenance and range scans.ByteArrayLabelSpecdrives both labels without aGraph, covering the hash round-trip, delete, degree counter, and indexed range scan.How to Test
./gradlew buildByteArrayLabelSpecinstantiates the labels directly on a freshByteArrayStoreand exercises the standard mutate/read pipeline.AI Assistance