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.
In the Scala, the result returned by
g.V.hasLabel
(DseGraphTraversal
) could be explicitly converted intoDataFrame
to which thewrite
function is applied.To achieve the same for Java, you can try to explicitly call
.df
on result, and then use.write
on it.