graph databases - Duplicate Vertices and Edges in OrientDB -
i making code fetch data remote database , store in orientdb server. example if vertex not present should created else should overwritten. similar support needed edges. using java api this(graph api) . can tell me best method this.thanks advance.
i found easy way this:
iterable<vertex> vv=graph.getvertices("name", "c++"); iterator it=vv.iterator(); if(it.hasnext()) { result="exists"; } else result="not exists";
it checks iterator size.
Comments
Post a Comment