JanusGraph schema 声明

#获取当前索引状态
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')) 获得服务器索引状态。```
  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值