g.traversal().V().as("x").map{t->println(t.path("x").toString())}
--
You received this message because you are subscribed to the Google Groups "Gremlin-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gremlin-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/gremlin-users/2ca9072b-de0b-466a-a81c-591dbda11099%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
graph = Titan…g = graph.traversal()g.withPath().V().as(…)g.V()….etc.
To unsubscribe from this group and stop receiving emails from it, send an email to gremlin-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/gremlin-users/CA%2Bf9seVQMzoHKT8mNQLuC6aVeRxzRdh6RO%2B%3D_%2Bmwd%2BXjze3THQ%40mail.gmail.com.
To unsubscribe from this group and stop receiving emails from it, send an email to gremlin-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/gremlin-users/2ca9072b-de0b-466a-a81c-591dbda11099%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To unsubscribe from this group and stop receiving emails from it, send an email to gremlin-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/gremlin-users/2ca9072b-de0b-466a-a81c-591dbda11099%40googlegroups.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/gremlin-users/a6ff8607-0076-41aa-bf7d-dceb87c393bb%40googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to gremlin-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/gremlin-users/a6ff8607-0076-41aa-bf7d-dceb87c393bb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Gremlin-users" group.
To view this discussion on the web visit https://groups.google.com/d/msgid/gremlin-users/45EFB22B-4620-4380-8BB0-F9DD90C0E881%40gmail.com.To unsubscribe from this group and stop receiving emails from it, send an email to gremlin-users+unsubscribe@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to gremlin-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/gremlin-users/2ca9072b-de0b-466a-a81c-591dbda11099%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
g.withPath().V(v).has("type", "type1").as("x").out().map{t->println(t.path("x").toString())}
To view this discussion on the web visit https://groups.google.com/d/msgid/gremlin-users/3d3663f6-d6a3-484e-a347-ef4db3b9daf1%40googlegroups.com.
==>com.thinkaurelius.titan.graphdb.database.management.TitanGraphIndexWrapper
gremlin> titanMgmt.getGraphIndex("by_name").getFieldKeys();
==>name
public static void main(String[] args) { BaseConfiguration conf = new BaseConfiguration(); conf.setProperty("storage.backend", "cassandra"); conf.setProperty("storage.hostname", "localhost"); conf.setProperty("storage.port", 9160); conf.setProperty("cache.db-cache", false); conf.setProperty("storage.cassandra.keyspace", "my_ks");
@SuppressWarnings("resource") TitanGraph graph = TitanFactory.open(conf); System.out.println("Without withPath() .."); System.out.println(graph.traversal().V().has("name", "xyz").count().next().longValue()); System.out.println("with withPath() .."); System.out.println(graph.traversal().withPath().V().has("name", "xyz").count().next().longValue()); graph.close(); }