【发布时间】:2019-10-30 14:56:50
【问题描述】:
我有一个连接到 Gremlin 服务器的 Java 项目。我想在运行时创建 5 个新的 Neo4j 图形实例?请问如何在 Gremlin Server 上执行此操作?
另外,我听说过 Gremlin Server 中的会话和无会话状态,但并不真正理解这样做的目的?!有人可以谈谈这一点,但更重要的是,展示如何在 Gremlin Server 上的 Java 项目中使用会话状态和无会话状态?
提前非常感谢。
例如:
List<GraphTraversalSource> graphs;
for (int x= 0 ; x < 5 ; x++) {
graph = Neo4jGraph.open();
g = graph.traversal();
graphs.add(g);
}
【问题讨论】: