feat(mapper): add streaming split, graph chunk mappers, and graphstore adapter#211
Draft
yushan8 wants to merge 1 commit into
Draft
feat(mapper): add streaming split, graph chunk mappers, and graphstore adapter#211yushan8 wants to merge 1 commit into
yushan8 wants to merge 1 commit into
Conversation
6 tasks
yushan8
marked this pull request as draft
July 17, 2026 04:11
3 tasks
yushan8
force-pushed
the
yushan/streaming-and-mappers
branch
from
July 17, 2026 05:13
9bd4bdf to
d05117c
Compare
yushan8
force-pushed
the
yushan/entity-target-graph
branch
from
July 17, 2026 05:13
4cb3028 to
fba8c52
Compare
yushan8
force-pushed
the
yushan/streaming-and-mappers
branch
3 times, most recently
from
July 17, 2026 22:57
ecb2996 to
36f3f33
Compare
yushan8
force-pushed
the
yushan/entity-target-graph
branch
from
July 17, 2026 22:57
fba8c52 to
34e6a59
Compare
yushan8
force-pushed
the
yushan/streaming-and-mappers
branch
2 times, most recently
from
July 17, 2026 23:32
91d9a76 to
9e0abdd
Compare
…e adapter Add internal/streaming with SplitBySize (generic wire-size splitter) and SplitMetadata (entity-based metadata splitter). Add mapper functions for the one-step targethasher.Result → entity GraphChunk conversion (ResultToGraphChunks), and bidirectional entity ↔ proto converters (GraphChunkToProto, ProtoToGraphChunk). Add graphstore adapter (WriteGraphChunks, GraphChunkReader) that hides proto serialization from callers — the orchestrator and controller work with entity types only. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
yushan8
force-pushed
the
yushan/streaming-and-mappers
branch
from
July 18, 2026 00:23
9e0abdd to
b621c93
Compare
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
internal/streaming/withSplitBySize(generic wire-size splitter) andSplitMetadata(returns[]*entity.GraphMetadata). Proto-free package.ResultToGraphChunks: one-steptargethasher.Result→[]entity.GraphChunk(ID mapping + splitting).GraphChunkToProto/ProtoToGraphChunk: bidirectional entity ↔ proto converters.WriteGraphChunks+GraphChunkReader: graphstore adapter that hides proto serialization — callers work with entity types only.core/common) and new implementations coexist — callsite migration follows in the next PR.Test plan
make build && make test— 19/19 passinternal/streaming/streaming_test.go— SplitBySize, SplitMetadata, wire size equivalenceinternal/mapper/target_graph_test.go— ResultToGraphChunks (empty, chunking), GraphChunkToProto round-tripmake gazelle && gofmt -w . && goimports -w .Stack