Skip to content

TinkerGraph refactor: extract interface, rename implementations - #3582

Merged
spmallette merged 1 commit into
masterfrom
tinkergraph-refactor
Aug 13, 2026
Merged

TinkerGraph refactor: extract interface, rename implementations#3582
spmallette merged 1 commit into
masterfrom
tinkergraph-refactor

Conversation

@spmallette

Copy link
Copy Markdown
Contributor

TinkerGraph is now an interface with two implementations: TinkerMemoryGraph (in-memory, what TinkerGraph.open() returns) and TinkerStorageGraph (the transactional graph formerly named TinkerTransactionGraph). Existing code using TinkerGraph.open() or gremlin.graph=...TinkerGraph works unchanged.

Starting point to changes described here: https://lists.apache.org/thread/2zt62kvfssh6xz5vnf2lk1g7cstq9vod

VOTE +1

Comment on lines 313 to 315
==>tinkertransactiongraph[vertices:0 edges:0]
gremlin> g = traversal().with(graph)
==>graphtraversalsource[tinkertransactiongraph[vertices:0 edges:0], standard]

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
==>tinkertransactiongraph[vertices:0 edges:0]
gremlin> g = traversal().with(graph)
==>graphtraversalsource[tinkertransactiongraph[vertices:0 edges:0], standard]
==>tinkerstoragegraph[vertices:0 edges:0]
gremlin> g = traversal().with(graph)
==>graphtraversalsource[tinkerstoragegraph[vertices:0 edges:0], standard]

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
==>graphtraversalsource[tinkerstoragegraph[vertices:1 edges:0], standard]

@xiazcy

xiazcy commented Aug 5, 2026

Copy link
Copy Markdown
Contributor

Just found some stale references in the docs, not sure if those would get picked up automatically by docs generation.

VOTE +1

TinkerGraph is now an interface with two implementations: TinkerMemoryGraph
(in-memory, what TinkerGraph.open() returns) and TinkerStorageGraph (the
transactional graph formerly named TinkerTransactionGraph). Existing code
using TinkerGraph.open() or gremlin.graph=...TinkerGraph works unchanged.

Assisted-by: Claude Code:claude-fable-5
@spmallette
spmallette force-pushed the tinkergraph-refactor branch from a548cec to c11e0a5 Compare August 12, 2026 12:10
@spmallette
spmallette merged commit acdd237 into master Aug 13, 2026
50 checks passed
@spmallette
spmallette deleted the tinkergraph-refactor branch August 13, 2026 01:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants