关闭事务

mgmt = graph.openManagement();
ids = mgmt.getOpenInstances();
for(String id : ids){if(!id.contains("(")){mgmt.forceCloseInstance(id)}};
mgmt.commit();

查看事务

mgmt = graph.openManagement();
mgmt.getOpenInstances();
mgmt.commit();

查看所有索引

mgmt = graph.openManagement();
mgmt.getGraphIndexes(Vertex.class);
mgmt.commit();

查看索引状态

mgmt = graph.openManagement();
vlabel = mgmt.getPropertyKey('vlabel');
byvlabel=mgmt.getGraphIndex('byvlabel');
status=byvlabel.getIndexStatus(vlabel);

获取所有节点标签

mgmt = graph.openManagement();
mgmt.getVertexLabels()
mgmt.commit()

获取所有边的标签

mgmt = graph.openManagement();
mgmt.getRelationTypes(EdgeLabel.class)
mgmt.commit()

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-10-07
  • 2022-12-23
  • 2021-11-20
  • 2021-05-05
猜你喜欢
  • 2022-12-23
  • 2021-08-01
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-06-15
相关资源
相似解决方案