At application context creation, I create a factory to access the graph
database, I also create a manual index (if non existing)
OrientGraphFactory gFactory = new
OrientGraphFactory("plocal:c:/tmp/oodb");
com.tinkerpop.blueprints.Index<Vertex> index =
gFactory.getNoTx().createIndex("myIdx", Vertex.class);
When I need to feed my graph with data, I get a graph instance using the
factory
OrientGraph g = gFactory.getTx();
Vertex v = g.addVertex(null)
g.commit();
When I feed the graph, I would like also to update the index with a line
like this one:
index.put("name","peter",v);
Unfortunately if I re-use the index created at application context creation
it looses "its coherence" with the the database.
So I am trying to get my index from the graph object delivered by the
gFactory but I cannot find a com.tinkerpop.blueprints.Index in it:
OIndex oIndex =
g.getRawGraph().getMetadata().getIndexManager().getIndex("myIdx");
// oIndex is not instance of com.tinkerpop.blueprints.Index
// nor is oIndex.getInternal()
Is there an equivalent of OrientGraphFactory for
com.tinkerpop.blueprints.Index ?
--
---
You received this message because you are subscribed to the Google Groups
"OrientDB" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.