Class

com.datastax.bdp.graph.spark.graphframe

BasicDseGraphFrame

Related Doc: package graphframe

Permalink

class BasicDseGraphFrame extends DseGraphFrame

Minimal read only DseGraphFrame implementation that wraps a GraphFrame to run traversal. Update and delete methods are not supported and will throw a NotImplementedError.

Linear Supertypes
DseGraphFrame, Serializable, Serializable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. BasicDseGraphFrame
  2. DseGraphFrame
  3. Serializable
  4. Serializable
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new BasicDseGraphFrame(g: GraphFrame)

    Permalink

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. def E(edgesIds: AnyRef*): DseGraphTraversal[Edge]

    Permalink

    Return graph traversal that supports a subset of TinkerPop3 traversal steps

    Return graph traversal that supports a subset of TinkerPop3 traversal steps

    edgesIds

    to start traverse with

    returns

    GraphTraversal[Edge] for the filtered graph

    Definition Classes
    DseGraphFrame
    Annotations
    @varargs()
  5. def E: DseGraphTraversal[Edge]

    Permalink

    Return graph traversal that supports a subset of TinkerPop3 traversal steps

    Return graph traversal that supports a subset of TinkerPop3 traversal steps

    returns

    GraphTraversal[Edge] for the graph

    Definition Classes
    DseGraphFrame
  6. def V(vertexIds: AnyRef*): DseGraphTraversal[Vertex]

    Permalink

    Return graph traversal that supports subset of TinkerPop3 traversal steps

    Return graph traversal that supports subset of TinkerPop3 traversal steps

    vertexIds

    to start traverse with

    returns

    GraphTraversal[Vertex] for the filtered graph

    Definition Classes
    DseGraphFrame
    Annotations
    @varargs()
  7. def V: DseGraphTraversal[Vertex]

    Permalink

    Return graph traversal that supports subset of TinkerPop3 traversal steps

    Return graph traversal that supports subset of TinkerPop3 traversal steps

    returns

    GraphTraversal[Vertex] for the graph

    Definition Classes
    DseGraphFrame
  8. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  9. def cache(): BasicDseGraphFrame.this.type

    Permalink

    proxy call to gf.cache()

    proxy call to gf.cache()

    returns

    this

    Definition Classes
    DseGraphFrame
  10. def cleanUp: String

    Permalink

    Remove any invalid edge entries from the database backend.

    Remove any invalid edge entries from the database backend.

    Definition Classes
    DseGraphFrame
  11. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  12. val clusterName: String

    Permalink
    Attributes
    protected
    Definition Classes
    DseGraphFrame
  13. lazy val connector: CassandraConnector

    Permalink
    Attributes
    protected
    Definition Classes
    DseGraphFrame
  14. val connectorOptions: Map[String, String]

    Permalink
    Attributes
    protected
    Definition Classes
    DseGraphFrame
  15. def copy(newGf: GraphFrame = gf): DseGraphFrame

    Permalink

    newGf

    that could be a sub-graph of the original graphframe

    returns

    new DseGraphFrame with the same schema but with new provided graph frame data

    Definition Classes
    BasicDseGraphFrameDseGraphFrame
  16. def deleteEdgeProperties(df: DataFrame, properties: String*): Unit

    Permalink

    The graph is read-only.

    The graph is read-only. Method throws NotImplementedError

    properties

    delete only selected properties not entire row

    Definition Classes
    BasicDseGraphFrameDseGraphFrame
  17. def deleteEdges(df: DataFrame, cache: Boolean): Unit

    Permalink

    The graph is read-only.

    The graph is read-only. Method throws NotImplementedError

    df

    data frame with edge ids: src,dst,~label, id

    cache

    cache df before processing, true by default for consistence updates. two C* entries need to be deleted for one edge, so no reloads expected between this two calls.

    Definition Classes
    BasicDseGraphFrameDseGraphFrame
  18. def deleteEdges(df: DataFrame): Unit

    Permalink

    shortcut for deleteEdges(df: DataFrame, cache: Boolean = true) for Java

    shortcut for deleteEdges(df: DataFrame, cache: Boolean = true) for Java

    Definition Classes
    DseGraphFrame
  19. def deleteVertexProperties(df: DataFrame, properties: Seq[String], labels: Seq[String], cache: Boolean): Unit

    Permalink

    The graph is read-only.

    The graph is read-only. Method throws NotImplementedError

    properties

    property names to delete

    Definition Classes
    BasicDseGraphFrameDseGraphFrame
  20. def deleteVertexProperties(df: DataFrame, properties: String*): Unit

    Permalink

    clean vertex properties with meta properties

    clean vertex properties with meta properties

    properties

    property names to delete

    Definition Classes
    DseGraphFrame
    Annotations
    @varargs()
  21. def deleteVertices(label: String): Unit

    Permalink

    The graph is read-only.

    The graph is read-only. Method throws NotImplementedError

    Definition Classes
    BasicDseGraphFrameDseGraphFrame
  22. def deleteVertices(df: DataFrame, labels: Seq[String], cache: Boolean): Unit

    Permalink

    The graph is read-only.

    The graph is read-only. Method throws NotImplementedError

    Definition Classes
    BasicDseGraphFrameDseGraphFrame
  23. def dropIsolatedVertices(): DseGraphFrame

    Permalink

    proxy call to gf.dropIsolatedVertices()

    proxy call to gf.dropIsolatedVertices()

    returns

    new filtered DseGraphFrame

    Definition Classes
    DseGraphFrame
  24. var dseGraphName: Option[String]

    Permalink
    Attributes
    protected
    Definition Classes
    DseGraphFrame
  25. lazy val edgeIdColumnNames: Seq[String]

    Permalink
    Definition Classes
    BasicDseGraphFrameDseGraphFrame
  26. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  27. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  28. def filterEdges(conditionExpr: String): DseGraphFrame

    Permalink

    proxy call to gf.filterEdges()

    proxy call to gf.filterEdges()

    returns

    new filtered DseGraphFrame

    Definition Classes
    DseGraphFrame
  29. def filterEdges(condition: Column): DseGraphFrame

    Permalink

    proxy call to gf.filterEdges()

    proxy call to gf.filterEdges()

    returns

    new filtered DseGraphFrame

    Definition Classes
    DseGraphFrame
  30. def filterVertices(conditionExpr: String): DseGraphFrame

    Permalink

    proxy call to gf.filterVertices()

    proxy call to gf.filterVertices()

    returns

    new filtered DseGraphFrame

    Definition Classes
    DseGraphFrame
  31. def filterVertices(condition: Column): DseGraphFrame

    Permalink

    proxy call to gf.filterVertices()

    proxy call to gf.filterVertices()

    returns

    new filtered DseGraphFrame

    Definition Classes
    DseGraphFrame
  32. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  33. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  34. val gf: GraphFrame

    Permalink
    Definition Classes
    DseGraphFrame
  35. def graphName: String

    Permalink

    Returns the graph name of this DseGraphFrame.

    Returns the graph name of this DseGraphFrame.

    Definition Classes
    DseGraphFrame
    Exceptions thrown

    NoSuchElementException if the graph name is not set.

  36. val graphOptions: Map[String, String]

    Permalink
    Definition Classes
    DseGraphFrame
  37. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  38. def idColumn(labelColumn: Column, idColumns: Column*): Column

    Permalink

    The graph is read-only.

    The graph is read-only. Method throws NotImplementedError

    Definition Classes
    BasicDseGraphFrameDseGraphFrame
  39. def idColumn(label: String, idColumns: Column*): Column

    Permalink

    The graph is read-only.

    The graph is read-only. Method throws NotImplementedError

    Definition Classes
    BasicDseGraphFrameDseGraphFrame
    Annotations
    @varargs()
  40. def io(url: String): DseGraphTraversal[Vertex]

    Permalink

    Performs a read or write based operation on the Graph backing this GraphTraversalSource.

    Performs a read or write based operation on the Graph backing this GraphTraversalSource. This step can be accompanied by the Object) modulator for further configuration and must be accompanied by a GraphTraversal#read() or GraphTraversal#write() modulator step which will terminate the traversal.

    url

    the url of file in distributed file system or JDBC connection or the name of file in default file system for which the read or write will apply - note that the context of how this parameter is used is wholly dependent on the implementation. i.e cassandra read/writer implementation will ignore this path and read table name from parameters.

    returns

    the traversal with the { @link IoStep} added

    Definition Classes
    DseGraphFrame
  41. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  42. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  43. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  44. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  45. def persist(storageLevel: StorageLevel): BasicDseGraphFrame.this.type

    Permalink

    proxy call to gf.persist()

    proxy call to gf.persist()

    returns

    this

    Definition Classes
    DseGraphFrame
  46. def persist(): BasicDseGraphFrame.this.type

    Permalink

    proxy call to gf.persist()

    proxy call to gf.persist()

    returns

    this

    Definition Classes
    DseGraphFrame
  47. lazy val spark: SparkSession

    Permalink
    Attributes
    protected
    Definition Classes
    DseGraphFrame
  48. lazy val sqlContext: SQLContext

    Permalink
    Attributes
    protected
    Definition Classes
    DseGraphFrame
  49. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  50. def toExternalEdgeId(label: String, srcId: String, dstId: String, ids: Seq[Any], schema: StructType): AnyRef

    Permalink

    label

    Edge label

    srcId

    Source vertex id

    dstId

    Destination vertex id

    ids

    Edge ids

    schema

    Associated DataFrame schema

    returns

    External ID object

    Definition Classes
    BasicDseGraphFrameDseGraphFrame
  51. def toExternalVertexId(id: String): AnyRef

    Permalink

    id

    String of vertex ID

    returns

    External ID object

    Definition Classes
    BasicDseGraphFrameDseGraphFrame
  52. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  53. def unpersist(blocking: Boolean): BasicDseGraphFrame.this.type

    Permalink

    proxy call to gf.unpersist()

    proxy call to gf.unpersist()

    returns

    this

    Definition Classes
    DseGraphFrame
  54. def unpersist(): BasicDseGraphFrame.this.type

    Permalink

    proxy call to gf.unpersist()

    proxy call to gf.unpersist()

    returns

    this

    Definition Classes
    DseGraphFrame
  55. def updateEdges(outVertexLabel: String, edgeLabel: String, inVertexLabel: String, df: DataFrame): Unit

    Permalink

    The graph is read-only.

    The graph is read-only. Method throws NotImplementedError

    df

    data frame with edge ids and update columns

    Definition Classes
    BasicDseGraphFrameDseGraphFrame
  56. def updateEdges(df: DataFrame, cache: Boolean = true): Unit

    Permalink

    The graph is read-only.

    The graph is read-only. Method throws NotImplementedError

    df

    data frame with edge ids and update columns

    cache

    cache df before processing, true by default for consistence updates. two C* entries need to be updated for one edge, so no reloads expected between this two calls.

    Definition Classes
    BasicDseGraphFrameDseGraphFrame
  57. def updateEdges(df: DataFrame): Unit

    Permalink

    shortcut for updateEdges(df: DataFrame, cache: Boolean = true) for Java

    shortcut for updateEdges(df: DataFrame, cache: Boolean = true) for Java

    Definition Classes
    DseGraphFrame
  58. def updateVertices(vertexLabel: String, df: DataFrame): Unit

    Permalink

    The graph is read-only.

    The graph is read-only. Method throws NotImplementedError

    vertexLabel

    vertex label to update

    df

    dataframe with vertex ids and columns to update

    Definition Classes
    BasicDseGraphFrameDseGraphFrame
  59. def updateVertices(df: DataFrame, labels: Seq[String], cache: Boolean): Unit

    Permalink

    The graph is read-only.

    The graph is read-only. Method throws NotImplementedError

    df

    dataframe with vertex id and update columns

    labels

    empty (means all) by default, it is convenient to group vertexes with the same id format. That group could be passed here, to reduce number of verification steps

    cache

    cache df before processing, true by default for consistence update and performance

    Definition Classes
    BasicDseGraphFrameDseGraphFrame
  60. def updateVertices(df: DataFrame): Unit

    Permalink

    shortcut for updateVertices(df: DataFrame, labels: Seq[String] = Seq.empty, cache: Boolean = true) for Java API

    shortcut for updateVertices(df: DataFrame, labels: Seq[String] = Seq.empty, cache: Boolean = true) for Java API

    df

    dataframe with vertex id and update columns

    Definition Classes
    DseGraphFrame
  61. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  62. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  63. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  64. def withCachedDf[T](df: DataFrame, cache: Boolean)(code: ⇒ T): T

    Permalink
    Attributes
    protected
    Definition Classes
    DseGraphFrame

Inherited from DseGraphFrame

Inherited from Serializable

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped