Hi everyone,
I'm using Orient java API in my project and now I have to query edges. This
is the code I'm using to query Vertex and print attribute values:
*for (Vertex v : (Iterable<Vertex>) graph.command(new
OCommandSQL(query)).execute()) {*
* j++;*
* System.out.println("\n");*
* System.out.println("Nodo: " + j);*
* for(int i=0;i<v.getPropertyKeys().toArray().length;i++)*
* {*
* if(
v.getProperty(v.getPropertyKeys().toArray()[i].toString()).equals("null"))*
* {*
* i++;*
* }*
* else*
* {*
* System.out.println(v.getPropertyKeys().toArray()[i] + ": " +
v.getProperty(v.getPropertyKeys().toArray()[i].toString()));*
* }*
* }*
* System.out.println("\n");*
* }*
If I try the same with edges,
*for (Edge e : (Iterable<Edge>) graph.command(new
OCommandSQL(query)).execute())*
I have no results.
Could someone help to me? Thanks
--
---
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.