try {
JanusGraphIndex index = mgmt.buildIndex("byId", Vertex.class).addKey(mgmt.getPropertyKey("ID")).unique().buildCompositeIndex();
mgmt.setConsistency(index, ConsistencyModifier.LOCK);
} catch (Exception e) {
log.info("Composite index: byId on Vertex is already defined");
}
try {
JanusGraphIndex edgeIndex = mgmt.buildIndex("byEdgeId", Edge.class).addKey(mgmt.getPropertyKey("ID")).buildCompositeIndex();
mgmt.setConsistency(edgeIndex, ConsistencyModifier.LOCK);
} catch (Exception e) {
log.info("Composite index: byEdgeId on Edge is already defined");
}
--
You received this message because you are subscribed to the Google Groups "JanusGraph users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to janusgraph-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/janusgraph-users/827ad4db-ed89-4f56-8328-13968a0ff215o%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/janusgraph-users/1C52C51F-F826-4EDB-855E-6A410E01536A%40gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/janusgraph-users/CAGEM45WmOVa53O7Z1c0wPTfD37nmvTf32cOOaXbbP34jwnjh3Q%40mail.gmail.com.
GraphTraversal<Vertex, Vertex> traversal = graph.traversal().V().has("USER", "ID", "user");
if (traversal.hasNext()) {
Vertex v = traversal.next();
}
To view this discussion on the web visit https://groups.google.com/d/msgid/janusgraph-users/B7915F83-76C0-4205-9D79-18C8E1C8AB7B%40gmail.com.
traversal().E().has("e", "ID", "edge1")
To view this discussion on the web visit https://groups.google.com/d/msgid/janusgraph-users/2E5F6F9B-F04A-49FE-85CA-D896FD8E1280%40gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/janusgraph-users/2E5F6F9B-F04A-49FE-85CA-D896FD8E1280%40gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/janusgraph-users/CAGEM45VgzJZOE78zM8TAQyUD_T401H7m8Hfb7jD_1Z2B8CjWVw%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/janusgraph-users/9571952E-4757-4F92-9E68-BAAC21EA70B2%40gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/janusgraph-users/CAGEM45XOhT7Qfh_W7pwoew0csNNxv-AiyCKmXX3pbiB7KVQsig%40mail.gmail.com.