Look, this is the code that i had done in Java:
public static void main(String[] args) {
Iterable<Vertex> key = null;
OrientGraphFactory factory = new OrientGraphFactory(path);
if (factory.exists()){
OrientGraph g = factory.getTx();
int node = (int) g.countVertices("V");
for (int i=0; i<node; i++){
key = g.command(new OSQLSynchQuery<Vertex>("select
LOCAL_TO_NON_LOCAL.keys()["+i+"] from V where LOCAL_TO_NON_LOCAL in
('125.5.221.17')")).execute();
for (Vertex x : key){
g.command (new OCommandSQL("update V set LOCAL_TO_NON_LOCAL = {"+
x.getProperty("LOCAL_TO_NON_LOCAL") +":'165.5.221.17'} where
LOCAL_TO_NON_LOCAL["+ x.getProperty("LOCAL_TO_NON_LOCAL")+ "]
='125.5.221.17'")).execute();
System.out.println("update ok");
}
}
g.shutdown();
}
factory.close();
}
Bye. Giulia
--
---
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.