Comments (4)
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.
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.
I think it's a blueprints method. But Neo4jGraph
implements that interface...
from gremlin-scala.
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)
- Error when updating a vertex HOT 1
- @id attribute of case class without Option HOT 6
- How to get both edge and vertex properties? HOT 4
- Bump gremlin-scala lib version to 3.4.0.x after TinkerPop version bump to 3.4.0. HOT 6
- toCC() key not found HOT 11
- Create vertex with Custom vertex id HOT 1
- Create vertices if not exists and add relation HOT 1
- Getting Side Effects Of Traversal HOT 4
- how to set up tinkerpop for scala HOT 1
- How to get node(s) and children with all properties as a map HOT 5
- Support for list types with cardinality HOT 4
- Scala 2.13 support HOT 4
- Annotations.labelOf is catastrophically slow HOT 4
- g.V(vertexID).headOption() returning null.
- With Sack not initialising properly. HOT 1
- Update gremlin-scala to TinkerPop 3.5.x HOT 2
- Support for scala 3.x HOT 1
- select for tuples have unused type parameter HOT 1
- Unable to build a traversal dynamically with labelled steps
- Tinkerpop 3.6.x support: mergeE / mergeV traversal semantics
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gremlin-scala.