Skip to content

Add ByteArrayStore-backed Hash/Indexed labels - #421

Merged
em3s merged 2 commits into
mainfrom
bytearray-labels-v2
Jul 16, 2026
Merged

em3s merged 2 commits into
mainfrom
bytearray-labels-v2

Conversation

@em3s

@em3s em3s commented Jul 16, 2026

Copy link
Copy Markdown
Contributor

Summary

Adds 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.

This is the same change previously merged into bytearray-c as #419, cherry-picked onto main so it no longer depends on the MetastoreInspector removal (#418).

Changes

  • Add ByteArrayHashLabel / ByteArrayIndexedLabel (row-key encoded, in-memory ByteArrayStore).
  • Add AbstractLabelCompatibilityTest, a backend-agnostic JUnit 5 suite covering the hash round-trip, delete, degree counter, and indexed range scan.
  • Add ByteArrayLabelCompatibilityTest and HBaseLabelCompatibilityTest, which run the shared suite against the ByteArrayStore- and mock-HBase-backed labels so the twins are held to identical semantics.

How to Test

./gradlew :engine:test --tests "com.kakao.actionbase.v2.engine.label.bytearray.ByteArrayLabelCompatibilityTest" --tests "com.kakao.actionbase.v2.engine.label.hbase.HBaseLabelCompatibilityTest"

AI Assistance

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

@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 changed the title Add ByteArrayStore-backed Hash/Indexed labels Add ByteArrayStore-backed Hash/Indexed labels to main Jul 16, 2026
@em3s em3s changed the title Add ByteArrayStore-backed Hash/Indexed labels to main Add ByteArrayStore-backed Hash/Indexed labels Jul 16, 2026
@em3s

em3s commented Jul 16, 2026

Copy link
Copy Markdown
Contributor Author

Optimistic merge

@em3s
em3s merged commit 85d8fa7 into main Jul 16, 2026
7 checks passed
@em3s
em3s deleted the bytearray-labels-v2 branch July 16, 2026 01:16
em3s added a commit that referenced this pull request Jul 16, 2026
main replaced ByteArrayLabelSpec with the backend-agnostic
AbstractLabelCompatibilityTest (#421). After merging main this branch
carried both, testing the same four cases twice; remove the stale kotest
spec.

Co-Authored-By: Claude Opus 4.8 <[email protected]>
@em3s em3s self-assigned this Jul 16, 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