Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The constructor for Neo4jGraphAPIImpl isn't public #3

Open
ducky427 opened this issue Aug 25, 2015 · 4 comments
Open

The constructor for Neo4jGraphAPIImpl isn't public #3

ducky427 opened this issue Aug 25, 2015 · 4 comments

Comments

@ducky427
Copy link

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
Copy link
Member

jexp commented Aug 25, 2015

like this new Neo4jGraphAPIImpl(GraphDatabaseService db) ?

@ducky427
Copy link
Author

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

@jexp
Copy link
Member

jexp commented Aug 25, 2015

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

@ducky427
Copy link
Author

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.

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

No branches or pull requests

2 participants