1

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.

Alex Ott
  • 80,552
  • 8
  • 87
  • 132
Glide
  • 20,235
  • 26
  • 86
  • 135

1 Answers1

1

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.

Alex Ott
  • 80,552
  • 8
  • 87
  • 132