#获取当前索引状态
mgmt=graph.openManagement();mgmt.getGraphIndex('courtIndex1').getIndexStatus(mgmt.getPropertyKey('court'))
#声明management对象
mgmt = graph.openManagement()
mgmt = graph.openManagement();mgmt.getVertexLabels() #获取当前所有节点标签
mgmt.getRelationTypes(EdgeLabel.class) #获取关系的标签
mgmt = graph.openManagement(); mgmt.getRelationTypes(PropertyKey.class) #获取关系的属性
mgmt.getRelationTypes(PropertyKey.class) #获取所有属性key
mgmt = graph.openManagement();mgmt.getGraphIndexes(Vertex.class) #获取所有Index
mgmt = graph.openManagement();mgmt.awaitGraphIndexStatus(graph,'fang_publish_person_index').call();#查看当前index是否构建成
graph.dropIndex('code',Vertex)#删除index
m=graph.openManagement();i=m.getGraphIndex('fang_publish_person_index');m.updateIndex(i SchemaAction.REINDEX).get();m.commit()
mgmt = graph.openManagement();mgmt.getOpenInstances(); #获得当前服务器的所有连接实例
mgmt = graph.openManagement();mgmt.forceCloseInstance('实例id') #删除连接实例
mgmt = graph.openManagement();mgmt.getGraphIndex('courtIndex').getIndexStatus(mgmt.getPropertyKey('court')) 获得服务器索引状态。```
JanusGraph schema 声明
最新推荐文章于 2024-03-07 13:47:51 发布