com.datastax.bdp.graph.spark.graphframe
vertex label in id separator Vertex id has format vertex_label:base64(idColumns)
the updateVertices, deleteVertexProperties, deleteVertices methods cache id dataframe and edge data frames for consistency "spark.dse.graphframes.update.persistLevel" spark configuration parameter can be used to change default MEMORY_ONLY storage to other spark levels.
add: ~adjacent_vertex_id ~~adjacent_label_id
UDF that extract dst vertex label
DseGraphFrameBuilder.dseGraph should be used instead of this
UDF that extract label name from the edgeLabelId
get SQL schema for given properties
calculate dst column from ADJACENT_VERTEX_ID column.
calculate dst column from ADJACENT_VERTEX_ID column. It should match focalVertexId format: label:base64(columnIds)
UDF that extract dst vertex label
udf function for non standard id
idf function for standard id
Vertex id has format vertexLabel:base64(idColumns)
in form "label:encode64(data)"
with column mapping
expected output will be: {~label=edge, ~out_vertex={~label=vertex, community_id=1888030080, member_id=0}, ~in_vertex={~label=custom, name=Name, array=1}, ~local_id=2f3671c0-96d0-11e6-9882-f74edf21f349}
in form "label:encode64(data)"
graph schema
ExternalId object
restore vertex Id from the GraphFrame Vertex id
restore vertex Id from the GraphFrame Vertex id