graph = TitanFactory.open('titan10.properties');g = graph.traversal();mgmt = graph.openManagement();
carLabel = mgmt.makeVertexLabel('car').make();modelKey = mgmt.makePropertyKey('model').dataType(String.class).make();mgmt.buildIndex('byModelU',Vertex.class).addKey(modelKey).unique().indexOnly(carLabel).buildCompositeIndex();mgmt.commit();
gremlin> v = graph.addVertex('car');
==>v[4296]
gremlin> v.property('model','Boxster');
==>vp[model->Boxster]
gremlin> v = graph.addVertex('car');==>v[4168]gremlin> v.property('model','Boxster');==>vp[model->Boxster]
gremlin> graph.tx().commit();==>nullgremlin> g.V().has('model','Boxster');==>v[4168]gremlin> g.V().hasLabel('car').has('model','Boxster');==>v[4168]
gremlin> graph.tx().commit();==>nullgremlin> g.V().has('model','Boxster');==>v[4168]==>v[4296]gremlin> g.V().hasLabel('car').has('model','Boxster');==>v[4296]
gremlin> g.V().has('model','Boxster');==>v[4168]==>v[4296]gremlin> g.V().hasLabel('car').has('model','Boxster');==>v[4168]
gremlin> g.tx().rollback();==>nullgremlin> g.V().hasLabel('car').has('model','Boxster');==>v[4296]
--
You received this message because you are subscribed to the Google Groups "Aurelius" group.
To unsubscribe from this group and stop receiving emails from it, send an email to aureliusgraph...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/aureliusgraphs/CAJFiCb_GdStXL%3Dd0oxiOYoGo_yR%2BiYoo8v-eKaMv9ZjNNH5dvQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
To view this discussion on the web visit https://groups.google.com/d/msgid/aureliusgraphs/CAA-H439giyT5wPRMbg14oukbZgZdNHfXwuFdvNDp_JT16TGQ5g%40mail.gmail.com.
To unsubscribe from this group and stop receiving emails from it, send an email to aureliusgraphs+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/aureliusgraphs/22844f79-f978-46e6-9344-c3810601a8e0%40googlegroups.com.