Object

pegasus.spark.graphgen

RandomGenerator

Related Doc: package graphgen

Permalink

object RandomGenerator

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

Type Members

  1. case class Region(srcMin: Long, dstMin: Long, srcMax: Long, dstMax: Long, numEdges: Long) extends Product with Serializable

    Permalink

    a region.

    a region.

    srcMin

    the minimum source node id in the region

    dstMin

    the minimum destination node id in the region

    srcMax

    the source node ids in the region are less than srcMax

    dstMax

    the destination node ids in the region are less than dstMax

    numEdges

    the number of edges in the region

  2. case class RegionSlot(edgeCapacity: Long, regions: Buffer[Region]) extends Product with Serializable

    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. final def asInstanceOf[T0]: T0

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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  6. final def eq(arg0: AnyRef): Boolean

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

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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  9. def generate(region: Region): Stream[(Long, Long)]

    Permalink

    generate edges within a given region

    generate edges within a given region

    region

    to process

    returns

    list of edges in the region

  10. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  11. def hashCode(): Int

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

    Permalink
    Definition Classes
    Any
  13. def main(args: Array[String]): Unit

    Permalink
  14. def multinomial(n: Long, p: Array[Double]): Array[Long]

    Permalink

    get a sample following a multinomial distribution

    get a sample following a multinomial distribution

    n

    the number of trials

    p

    list of probability

    returns

    a sample following a multinomial distribution

  15. final def ne(arg0: AnyRef): Boolean

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

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

    Permalink
    Definition Classes
    AnyRef
  18. def regionOrder(r: Region): Long

    Permalink
  19. def regionSlotOrder(s: RegionSlot): Long

    Permalink
  20. def run(numNodes: Long, numEdges: Long, numTasks: Int, sc: SparkContext): RDD[(Long, Long)]

    Permalink

    submit the spark job.

    submit the spark job.

    numNodes

    the number of nodes

    numEdges

    the number of edges

    numTasks

    degree of parallelism (the number of tasks to run)

    sc

    spark context

    returns

    an RDD containing edges of the generated graph

  21. def splitRegion(region: Region): Array[Region]

    Permalink

    split a region

    split a region

    region

    to split

    returns

    list of splitted regions

  22. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  23. val thresholdRegionEdgeNum: Int

    Permalink
  24. def toString(): String

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

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped