Is anyone using Blueprint Manual index in a successful way in a multi threaded env ?
If yes, how do you get your index bluepring object ? Note: I am using OrientDB 1.7. Currently: I have rewrotten index classes based on guava. Le lundi 2 juin 2014 16:08:51 UTC+2, [email protected] a écrit : > > 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.
