neo4j-contrib / neo4j-tinkerpop-api-impl

Implementation of Apache Licensed Neo4j API for Tinkerpop3
Other
24 stars 16 forks source link

The constructor for Neo4jGraphAPIImpl isn't public #3

Open ducky427 opened 9 years ago

ducky427 commented 9 years ago

I was thinking of using Gremlin without resorting to the deprecated GraphDatabaseAPI.

I need to instantiate a org.neo4j.tinkerpop.api.Neo4jGraphAPI given a GraphDatabaseService but I can't seem to find a way.

Thanks.

jexp commented 9 years ago

like this new Neo4jGraphAPIImpl(GraphDatabaseService db) ?

ducky427 commented 9 years ago

Thats what I was trying @jexp. But the constructor isn't public.

jexp commented 9 years ago

Hmm in Gremlin there is no need for that? How / where do you want to use it like that?

ducky427 commented 9 years ago

I was trying to see if its possible to use gremlin while inside by unmanaged extension and if there are any benefits. So completely exploratory.

Looking at the tinkerpop documentation, it looks like, I need a org.apache.tinkerpop.gremlin.neo4j.structure.Neo4jGraph. Its constructor accepts a org.neo4j.tinkerpop.api.Neo4jGraphAPI.

All I have is a GraphDatabaseService. So I wanted to figure out a way of doing that.

Thanks for your help.