Hi Nandna,
To create/update a Vertex:
g.command(new OCommandSQL("update Device set Name='Device 3',Type='Type
3',ActiveSessionCount=3 upsert where Name='Device 3'' "));
To do your query:
Iterable<Vertex> it=g.command(new OSQLSynchQuery<Vertex>("select
sum(out('has').ActiveSessionCount) from Device where Name = 'Device
0'")).execute();
for(Vertex v: it)
{
System.out.println(v.getProperty("sum").toString());
}
Regards,
Michela
--
---
You received this message because you are subscribed to the Google Groups
"OrientDB" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.