public static class DataflowPipelineRunner.StreamingPubsubIOWrite<T> extends PTransform<PCollection<T>,PDone>
PubsubIO.Write for the Dataflow runner in streaming
mode.
For internal use only. Subject to change at any time.
Public so the PubsubIOTranslator
can access.
name| Constructor and Description |
|---|
StreamingPubsubIOWrite(PubsubIO.Write.Bound<T> transform)
Builds an instance of this class from the overridden transform.
|
| Modifier and Type | Method and Description |
|---|---|
PDone |
apply(PCollection<T> input)
Applies this
PTransform on the given InputT, and returns its
Output. |
protected String |
getKindString()
Returns the name to use by default for this
PTransform
(not including the names of any enclosing PTransforms). |
PubsubIO.Write.Bound<T> |
getOverriddenTransform() |
getDefaultOutputCoder, getDefaultOutputCoder, getDefaultOutputCoder, getName, toString, validatepublic StreamingPubsubIOWrite(PubsubIO.Write.Bound<T> transform)
public PubsubIO.Write.Bound<T> getOverriddenTransform()
public PDone apply(PCollection<T> input)
PTransformPTransform on the given InputT, and returns its
Output.
Composite transforms, which are defined in terms of other transforms, should return the output of one of the composed transforms. Non-composite transforms, which do not apply any transforms internally, should return a new unbound output and register evaluators (via backend-specific registration methods).
The default implementation throws an exception. A derived class must
either implement apply, or else each runner must supply a custom
implementation via
PipelineRunner.apply(com.google.cloud.dataflow.sdk.transforms.PTransform<InputT, OutputT>, InputT).
apply in class PTransform<PCollection<T>,PDone>protected String getKindString()
PTransformPTransform
(not including the names of any enclosing PTransforms).
By default, returns the base name of this PTransform's class.
The caller is responsible for ensuring that names of applied
PTransforms are unique, e.g., by adding a uniquifying
suffix when needed.
getKindString in class PTransform<PCollection<T>,PDone>