public class Traverse {
public static void main(String[] args) { OServerAdmin connection; try { connection = new OServerAdmin("remote:db_host/db_name").connect("root", "root"); if (connection.existsDatabase()) { OrientGraph g = new OrientGraph("remote:db_host/db_name"); Iterable<Vertex> result = g.command(new OCommandSQL("traverse * from #12:0")).execute();
g.shutdown(); } }catch (IOException e){ e.printStackTrace(); } }
}
thank for quic responsecan I mention class name vertex rather than using rid?
On Thursday, May 26, 2016 at 5:44:55 PM UTC+5:30, eswar reddy wrote: