Re: How to open the same graph multiple times and not get the same object?
HadoopMarc <bi...@...>
Hi Mladen,
The constructor of StandardJanusGraph seems worth a try:
https://github.com/JanusGraph/janusgraph/blob/master/janusgraph-core/src/main/java/org/janusgraph/graphdb/database/StandardJanusGraph.java
HTH, Marc
Op dinsdag 8 december 2020 om 19:34:55 UTC+1 schreef Mladen Marović:
Hello,I'm writing a Java program that, for various implementation details, needs to open the same graph multiple times. Currently I'm using JanusGraphFactory.open(...), but this always looks up the graph by its name in the static JanusGraphManager instance and returns the same object.is there a way to create two different object instances of the same Janusgraph graph? These instances need to be completely separate, so that closing one graph does not close transactions created using the other graph. I checked the documentation and inspected the code directly while debugging, but couldn't find anything useful.Thanks in advance,Mladen