Object

io.archivesunleashed.app

WriteGraph

Related Doc: package app

Permalink

object WriteGraph

UDF for exporting an RDD representing a collection of links to a GEXF file.

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. WriteGraph
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

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 apply(ds: Array[Row], gexfPath: String): Boolean

    Permalink
  5. def apply(rdd: RDD[((String, String, String), Int)], gexfPath: String): Boolean

    Permalink

    Writes graph nodes and edges to file.

    Writes graph nodes and edges to file.

    rdd

    RDD of elements in format ((datestring, source, target), count)

    gexfPath

    output file

    returns

    Unit().

  6. def asGexf(data: Array[Row], gexfPath: String): Boolean

    Permalink

    Produces the GEXF output from an Array[Row] and outputs it to gexfPath.

    Produces the GEXF output from an Array[Row] and outputs it to gexfPath.

    data

    a Dataset[Row] of elements in format (datestring, source, target, count)

    gexfPath

    output file

    returns

    true on success.

  7. def asGexf(rdd: RDD[((String, String, String), Int)], gexfPath: String): Boolean

    Permalink

    Produces the GEXF output from a RDD of tuples and outputs it to gexfPath.

    Produces the GEXF output from a RDD of tuples and outputs it to gexfPath.

    rdd

    a RDD of elements in format ((datestring, source, target), count)

    gexfPath

    output file

    returns

    true on success.

  8. def asGraphml(rdd: RDD[((String, String, String), Int)], graphmlPath: String): Boolean

    Permalink
  9. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  10. def clone(): AnyRef

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

    Permalink
  12. val edgeEnd: String

    Permalink
  13. def edgeNodes(rdd: RDD[((String, String, String), Int)]): RDD[(String, Long, Long, Int)]

    Permalink

    Produces uniqueIds for edge lists from a flatMapped rdd, using nodesWithIds

    Produces uniqueIds for edge lists from a flatMapped rdd, using nodesWithIds

    rdd

    an RDD of elements in format ((datestring, source, target), count)

    returns

    an RDD in format (date, sourceid, destinationid, count)

  14. val edgeStart: String

    Permalink
  15. val endAttribute: String

    Permalink
  16. final def eq(arg0: AnyRef): Boolean

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

    Permalink
    Definition Classes
    AnyRef → Any
  18. def finalize(): Unit

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

    Permalink
    Definition Classes
    AnyRef → Any
  20. val gexfHeader: String

    Permalink
  21. val graphmlHeader: String

    Permalink
  22. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  23. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  24. val labelStart: String

    Permalink
  25. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  26. def nodeIdFromLabel(id: Option[(String, Long)]): Long

    Permalink

    Produces the id from Nodelookup

    Produces the id from Nodelookup

    id

    an Option containing the lookup.

    returns

    a long representing the id or -1 if no id exists from the lookup.

  27. def nodeLookup(rdd: RDD[(String, Long)], lookup: String): Option[(String, Long)]

    Permalink

    Produces the (label, id) combination from a nodeslist of an RDD that has the same label as lookup.

    Produces the (label, id) combination from a nodeslist of an RDD that has the same label as lookup.

    rdd

    an RDD of elements in format ((datestring, source, target), count)

    lookup

    the label to lookup.

    returns

    an Option containing Some(Label, UniqueId) or None

  28. val nodeStart: String

    Permalink
  29. def nodesWithIds(rdd: RDD[((String, String, String), Int)]): RDD[(String, Long)]

    Permalink

    Produces a zipped RDD with ids and labels from an network-based RDD, rdd.

    Produces a zipped RDD with ids and labels from an network-based RDD, rdd.

    rdd

    a RDD of elements in format ((datestring, source, target), count)

    returns

    an RDD containing (Label, UniqueId)

  30. final def notify(): Unit

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

    Permalink
    Definition Classes
    AnyRef
  32. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  33. val targetChunk: String

    Permalink
  34. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  35. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  38. val xmlHeader: String

    Permalink

Inherited from AnyRef

Inherited from Any

Ungrouped