Giter VIP home page Giter VIP logo

Comments (4)

mpollmeier avatar mpollmeier commented on July 27, 2024

GremlinScala only provides a wrapping layer where it makes sense. In this case it looks like you're just using the main tinkerpop Graph interface, so Gremlin-Scala isn't involved. You can do just the same in Scala with g.createKeyIndex("my_key",classOf[Vertex])

from gremlin-scala.

omidb avatar omidb commented on July 27, 2024

here is my code from your sample:

import com.tinkerpop.gremlin.neo4j.structure.Neo4jGraph
val graph: Neo4jGraph = Neo4jGraph.open("E:/scratch/test47")
val gs = GremlinScala(graph)

Both 'gs' and 'graph' has no .creatKeyIndex function for me.

from gremlin-scala.

laughedelic avatar laughedelic commented on July 27, 2024

I think it's a blueprints method. But Neo4jGraph implements that interface...

from gremlin-scala.

mpollmeier avatar mpollmeier commented on July 27, 2024

Please be aware that this this is all for tinkerpop3 - blueprints doesn't exist any more (it was in tinkerpop2). I'll update the readme shortly so that other's don't get down the wrong route, too.

Here are some pointers for code and documentation:
https://github.com/mpollmeier/gremlin-scala/tree/tinkerpop3
https://github.com/tinkerpop/tinkerpop3/blob/master
http://www.tinkerpop.com/docs/current/

For your question in particular:
https://github.com/tinkerpop/tinkerpop3/blob/master/neo4j-gremlin/src/main/java/com/tinkerpop/gremlin/neo4j/structure/Neo4jGraph.java#L288

Looks like there's a Schema manager that let's you manage indices. Tinkergraph (the dummy graph implementation) has a createIndex function.

from gremlin-scala.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.