Does DseGraphFrame in Java support exporting graphs?

59 Views Asked by At

Per DSE docs, vertices and edges can be exported calling g.V().hasLabel("Person").write.json("/tmp/person_v_json") in dse spark.

Can the same be achieved using DseGraphFrame for the Java SDK? I want to make sure because I can't finda write() method.

1

There are 1 best solutions below

0
On BEST ANSWER

In the Scala, the result returned by g.V.hasLabel (DseGraphTraversal) could be explicitly converted into DataFrame to which the write function is applied.

To achieve the same for Java, you can try to explicitly call .df on result, and then use .write on it.