Repository navigation
IMMUTABLE_INDEXED encodes index-only in codec-java - #436
Merged
Merged
Conversation
BulkEdgeEncoder already skips the hash-state row for IMMUTABLE_INDEXED and writes index rows; extend the count early-return to IMMUTABLE_INDEXED so bulk load matches the mutation path (index-only, no EdgeCount). Refresh the stale doc comment. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
This was referenced Jul 20, 2026
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
Make
BulkEdgeEncoderbulk-encodeIMMUTABLE_INDEXEDas index-only. It already skips the hash-state row and writes index rows, but the EdgeCount early-return only coveredVERTEX, so an immutable label wrongly emitted counter edges on bulk load. Extend the early-return toIMMUTABLE_INDEXEDso bulk encoding matches its mutation-path semantics (index-only, noEdgeCount).Independent of the v3 immutable-edge work (#433/#434): operates purely on the pre-existing
LabelType.IMMUTABLE_INDEXED.Closes #
Changes
BulkEdgeEncoder: the EdgeCount early-return now coversVERTEXandIMMUTABLE_INDEXED(both store no count records).IMMUTABLE_INDEXEDrow in the class doc comment.testImmutableIndexedEncodesIndexOnlyasserts anIMMUTABLE_INDEXEDbulk row emits index rows only — no hash state, no cache, no counter.How to Test
./gradlew :codec-java:test --tests "com.kakao.actionbase.v2.core.code.BulkEdgeEncoderTests"AI Assistance