I've been looking at the management system but some things still elude me. Essentially what I want to do is:
- List all Edge based indexes (including vertex centric).
- List all Vertex based indexes (on a per label basis if the index is attached to a label).
It's basically like mapping out the graph schema.
I've tried a few things but I only get partial data at best.
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.
Any help filling the void would be helpful.
Id like to know:
- How can I find the indexes attached to a label (or label attached to an index) via indexOnly()
- How do I list the edge indexes set via buildEdgeIndex() and their respective edge Labels?
Thanks in advance.
Extra information: Titan 0.5.0, Cassandra backend, via rexster.