com.spotify.scio

ScioContext

class ScioContext extends AnyRef

Main entry point for Scio functionality. A ScioContext represents a pipeline and can be used to create SCollections and distributed caches on that cluster.

Linear Supertypes
AnyRef, Any
Ordering
  1. Grouped
  2. Alphabetic
  3. By inheritance
Inherited
  1. ScioContext
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Value Members

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

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

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

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. def addArtifacts(extraLocalArtifacts: List[String]): Unit

    Add artifact to stage in workers.

    Add artifact to stage in workers. Artifact can be jar/text-files etc. NOTE: currently one can only add artifacts before pipeline object is created.

  7. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  8. def avroFile[T](path: String, schema: Schema = null)(implicit arg0: ClassTag[T]): SCollection[T]

    Get an SCollection for an Avro file.

  9. def bigQuerySelect(sqlQuery: String, flattenResults: Boolean = false): SCollection[TableRow]

    Get an SCollection for a BigQuery SELECT query.

  10. def bigQueryTable(tableSpec: String): SCollection[TableRow]

    Get an SCollection for a BigQuery table.

  11. def bigQueryTable(table: TableReference): SCollection[TableRow]

    Get an SCollection for a BigQuery table.

  12. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  13. def close(): ScioResult

    Close the context.

    Close the context. No operation can be performed once the context is closed.

  14. def customInput[T](transform: PTransform[PInput, PCollection[T]])(implicit arg0: ClassTag[T]): SCollection[T]

    Get an SCollection with a custom input transform.

    Get an SCollection with a custom input transform. The transform should have a unique name.

  15. def datastore(projectId: String, query: Query, namespace: String = null): SCollection[Entity]

    Get an SCollection for a Datastore query.

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

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

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

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

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

    Definition Classes
    AnyRef → Any
  21. def isClosed: Boolean

    Whether the context is closed.

  22. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  23. def maxAccumulator[T](n: String)(implicit at: AccumulatorType[T]): Accumulator[T]

    Create a new Accumulator that keeps track of the maximum value.

    Create a new Accumulator that keeps track of the maximum value. See SCollection.withAccumulator for examples.

  24. def minAccumulator[T](n: String)(implicit at: AccumulatorType[T]): Accumulator[T]

    Create a new Accumulator that keeps track of the minimum value.

    Create a new Accumulator that keeps track of the minimum value. See SCollection.withAccumulator for examples.

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

    Definition Classes
    AnyRef
  26. final def notify(): Unit

    Definition Classes
    AnyRef
  27. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  28. def objectFile[T](path: String)(implicit arg0: ClassTag[T]): SCollection[T]

    Get an SCollection for an object file.

  29. val options: PipelineOptions

  30. def optionsAs[T <: PipelineOptions](implicit arg0: ClassTag[T]): T

    Get PipelineOptions as a more specific sub-type.

  31. def parallelize[K, V](elems: Map[K, V])(implicit arg0: ClassTag[K], arg1: ClassTag[V]): SCollection[(K, V)]

    Distribute a local Scala Map to form an SCollection.

  32. def parallelize[T](elems: Iterable[T])(implicit arg0: ClassTag[T]): SCollection[T]

    Distribute a local Scala Iterable to form an SCollection.

  33. def parallelizeTimestamped[T](elems: Iterable[T], timestamps: Iterable[Instant])(implicit arg0: ClassTag[T]): SCollection[T]

    Distribute a local Scala Iterable with timestamps to form an SCollection.

  34. def parallelizeTimestamped[T](elems: Iterable[(T, Instant)])(implicit arg0: ClassTag[T]): SCollection[T]

    Distribute a local Scala Iterable with timestamps to form an SCollection.

  35. def pipeline: Pipeline

    Underlying pipeline.

  36. def protobufFile[T](path: String)(implicit arg0: ClassTag[T], ev: <:<[T, Message]): SCollection[T]

    Get an SCollection for a Protobuf file.

  37. def pubsubSubscription(sub: String, idLabel: String = null, timestampLabel: String = null): SCollection[String]

    Get an SCollection for a Pub/Sub subscription.

  38. def pubsubTopic(topic: String, idLabel: String = null, timestampLabel: String = null): SCollection[String]

    Get an SCollection for a Pub/Sub topic.

  39. def setAppName(name: String): Unit

    Set application name for the context.

  40. def setJobName(name: String): Unit

    Set job name for the context (Dataflow only)

  41. def sumAccumulator[T](n: String)(implicit at: AccumulatorType[T]): Accumulator[T]

    Create a new Accumulator that keeps track of the sum of values.

    Create a new Accumulator that keeps track of the sum of values. See SCollection.withAccumulator for examples.

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

    Definition Classes
    AnyRef
  43. def tableRowJsonFile(path: String): SCollection[TableRow]

    Get an SCollection of TableRow for a JSON file.

  44. def textFile(path: String, compressionType: CompressionType = gio.TextIO.CompressionType.AUTO): SCollection[String]

    Get an SCollection for a text file.

  45. def toString(): String

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

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  49. def wrap[T](p: PCollection[T])(implicit arg0: ClassTag[T]): SCollection[T]

    Wrap a PCollection.

Inherited from AnyRef

Inherited from Any

Accumulators

In-memory Collections

Input Sources

Other Members