Get an SCollection with a custom input transform.
Get an SCollection with a custom input transform. The transform should have a unique name.
Get an SCollection for a Datastore query.
Form an empty SCollection.
Initialize a given Counter metric.
Initialize a new Counter metric from namespace and name.
Initialize a new Counter metric using T
as namespace.
Initialize a new Counter metric using T
as namespace.
Default is "com.spotify.scio.ScioMetrics" if T
is not specified.
Whether the context is closed.
Whether this is a test context.
Get PipelineOptions as a more specific sub-type.
Distribute a local Scala Map
to form an SCollection.
Distribute a local Scala Iterable
to form an SCollection.
Distribute a local Scala Iterable
with timestamps to form an SCollection.
Distribute a local Scala Iterable
with timestamps to form an SCollection.
Underlying pipeline.
Get an SCollection for a Pub/Sub subscription.
Get an SCollection for a Pub/Sub subscription that includes message attributes.
Get an SCollection for a Pub/Sub topic.
Get an SCollection for a Pub/Sub topic that includes message attributes.
Generic read method for all ScioIO[T]
implementations, which will invoke the provided IO's
com.spotify.scio.io.ScioIO[T]#readWithContext method along with read configurations
passed in.
Generic read method for all ScioIO[T]
implementations, which will invoke the provided IO's
com.spotify.scio.io.ScioIO[T]#readWithContext method along with read configurations
passed in. The IO class can delegate test-specific behavior if necessary.
an implementation of ScioIO[T]
trait
configurations need to pass to perform underline read implementation
Runs the underlying pipeline.
Runs the underlying pipeline.
Running closes the context and no further transformations can be applied to the pipeline once the context is closed.
the ScioExecutionContext for the underlying job execution.
Set application name for the context.
Set job name for the context.
Get an SCollection for a text file.
Create a union of multiple SCollections.
Create a union of multiple SCollections. Supports empty lists.
Set a custom name for the next transform to be applied.
Set a custom name for the next transform to be applied.
Wrap a PCollection.
Close the context.
Close the context. No operation can be performed once the context is closed.
This method is deprecated and with it the --blocking
flag.
Use ScioContext#run.
To achieve the same behaviour when --blocking
was enabled use:
val sc: ScioContext = ???
sc.run().waitUntilDone(Duration.Inf)
(Since version 0.8.0) this method will be removed in next scio version; use run() instead.
Main entry point for Scio functionality. A ScioContext represents a pipeline and can be used to create SCollections and distributed caches on that cluster.