JanusGraph/janusgraph

Create JanusGraphIndex::describe method to include more information

Open

#3,126 建立於 2022年6月30日

在 GitHub 查看
 (0 留言) (0 反應) (0 負責人)Java (1,137 fork)batch import
area/indexgood first issue

倉庫指標

Star
 (4,985 star)
PR 合併指標
 (平均合併 3天 18小時) (30 天內合併 12 個 PR)

描述

Currently, JanusGraphIndexWrapper::toString simply returns the index name. We could create a new describe method (or any other name) so that user could more easily retrieve information about that index. For example, we could include the status of each field key. Currently, it is a bit cumbersome to retrieve such information (see below):

gremlin> mgmt.getGraphIndex("mixed_demo")
==>mixed_demo
gremlin> mgmt.getGraphIndex("mixed_demo").getFieldKeys()
==>name
==>update_time
gremlin> mgmt.getGraphIndex("mixed_demo").getParametersFor(mgmt.getPropertyKey("name"))
==>mapping->STRING
==>mapped-name->name
==>status->ENABLED

貢獻者指南