com.datastax.bdp.graph
The root package of DSE GraphFrame support.
The root package of DSE GraphFrame support. Offers handy implicit conversions that add DSE-specific methods to SparkSession and GraphFrame.
Call dseGraph method on the SparkSession object to create a GraphFrame exposing DSE Graph as Spark GraphFrame.
Call GraphFrameFunctions saveToDse function on any GraphFrame to save updated graph back to DSE.
saveToDse
GraphFrame
Example:
import com.datastax.bdp.graph.spark.graphframe._ val graphName = "test" // Read graph and print vertices labels: val graph = spark.dseGraph(graphName) graph.V().select("label").distinct.show
The root package of DSE GraphFrame support. Offers handy implicit conversions that add DSE-specific methods to SparkSession and GraphFrame.
Call dseGraph method on the SparkSession object to create a GraphFrame exposing DSE Graph as Spark GraphFrame.
Call GraphFrameFunctions
saveToDse
function on anyGraphFrame
to save updated graph back to DSE.Example: