JanusGraph/janusgraph

Create JanusGraphIndex::describe method to include more information

开放

#3,126 创建于 2022年6月30日

 (0 条评论) (0 个反应) (0 位负责人)Java (1,137 个派生)batch import
area/indexgood first issue

仓库指标

星标
 (4,985 个星标)
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

贡献者指南