Class/Object

com.pb.bigdata.routing.spark.api

GRAInstanceBuilder

Related Docs: object GRAInstanceBuilder | package api

Permalink

class GRAInstanceBuilder extends Serializable

Builder for an IGRAInstance that behaves efficiently in Spark. The IGRAInstance will be serializable from the driver to the executors. All tasks in an executor will share a single IGRAInstance.

For example:

val downloadManager = new DownloadManagerBuilder("/pb/downloads").addDownloader(new S3Downloader(spark.sparkContext.hadoopConfiguration)).build()
val graInstance = GRAInstanceBuilder()
  .withDownloadManager(downloadManager)
  .addDataset("s3://my.s3.bucket/pb/routing/data/usa")
  .build()

Linear Supertypes
Serializable, Serializable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. GRAInstanceBuilder
  2. Serializable
  3. Serializable
  4. AnyRef
  5. 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 addDataset(datasetPath: ⇒ String): GRAInstanceBuilder

    Permalink

    Include a routing dataset by specifying the path to the dataset's directory.

    Include a routing dataset by specifying the path to the dataset's directory. If using a remote path then include a DownloadManger when using this builder. Otherwise use a local path to the dataset that exists on every worker node.

    datasetPath

    the path to the dataset's directory

    returns

    this builder with the addition of this dataset

  5. def addDatasets(datasetPath: ⇒ TraversableOnce[String]): GRAInstanceBuilder

    Permalink

    Include routing datasets by specifying the paths to the dataset directories.

    Include routing datasets by specifying the paths to the dataset directories. If using remote paths then include a DownloadManger when using this builder. Otherwise use local paths to the dataset that exists on every worker node.

    datasetPath

    the paths to the dataset directories

    returns

    this builder with the addition of the datasets

  6. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  7. def build(): IGRAInstance

    Permalink

    Builds the IGRAInstance

    Builds the IGRAInstance

    returns

    the IGRAInstance to use for routing requests

  8. def clone(): AnyRef

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

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

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

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

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

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

    Permalink
    Definition Classes
    Any
  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. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  19. def toString(): String

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

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  23. def withDownloadManager(downloadManager: DownloadManager): GRAInstanceBuilder

    Permalink

    Add a DownloadManager to help resolve any remote dataset paths.

    Add a DownloadManager to help resolve any remote dataset paths. DownloadManagers are created using the DownloadManagerBuilder

    downloadManager

    the DownloadManager to use

    returns

    this builder with the addition of the DownloadManager specified

  24. def withOptions(options: ⇒ Options): GRAInstanceBuilder

    Permalink

    Add additional options to use when the GRAInstance is created.

    Add additional options to use when the GRAInstance is created. Options are created using the Options.Builder

      new Options.Builder().isoTimeout(60000).build()
    

    options

    the options to use

    returns

    this builder with the addition of the Options specified

Inherited from Serializable

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped