我一直在研究管理系统,但有些事情仍然让我无法理解。基本上我想做的是:
- 列出所有基于边缘的索引(包括以顶点为中心)。
- 列出所有基于顶点的索引(如果索引附加到标签,则基于每个标签)。
它基本上就像映射出图形模式。
我已经尝试了一些东西,但我最多只能得到部分数据。
g.getIndexdKeys(<Vertex or Edge>);
//basic information. Doesn't seem to return any buildEdgeIndex() based indexes
mgmt.getVertexLabels();
// gets labels, can't find a way of getting indexes attached to these labels.
mgmt.getGraphIndexes(Vertex.class);
// works nicely I can retrieve Vertex indexes and get pretty much any
// information I want out of them except for information regarding
// indexOnly(label). So I can't tell what label these indexes are attached to.
mgmt.getGraphIndexes(Edge.class);
// doesn't seem to return any buildEdgeIndex() indexes.
任何填补空白的帮助都会有所帮助。
我想知道:
- 如何通过 indexOnly() 找到附加到标签(或附加到索引的标签)的索引
- 如何列出通过 buildEdgeIndex() 设置的边缘索引及其各自的边缘标签?
提前致谢。
额外信息: Titan 0.5.0,Cassandra 后端,来自 rexster。