public static class PubsubIO.Write.Bound<T> extends PTransform<PCollection<T>,PDone>
PCollection<String>
to a PubSub stream.name| Modifier and Type | Method and Description |
|---|---|
PDone |
apply(PCollection<T> input)
Applies this
PTransform on the given Input, and returns its
Output. |
Coder<T> |
getCoder() |
protected Coder<java.lang.Void> |
getDefaultOutputCoder()
Returns the default
Coder to use for the output of this
single-output PTransform, or null if
none can be inferred. |
java.lang.String |
getIdLabel() |
protected java.lang.String |
getKindString()
Returns a string describing what kind of
PTransform this is. |
java.lang.String |
getTimestampLabel() |
java.lang.String |
getTopic() |
PubsubIO.Write.Bound<T> |
idLabel(java.lang.String idLabel)
Returns a new PubsubIO.Write PTransform that's like this one but publishing record ids
to the given PubSub label.
|
PubsubIO.Write.Bound<T> |
named(java.lang.String name)
Returns a new PubsubIO.Write PTransform that's like this one but with the given step
name.
|
PubsubIO.Write.Bound<T> |
timestampLabel(java.lang.String timestampLabel)
Returns a new PubsubIO.Write PTransform that's like this one but publishing timestamps
to the given PubSub label.
|
PubsubIO.Write.Bound<T> |
topic(java.lang.String topic)
Returns a new PubsubIO.Write PTransform that's like this one but writing to the given
topic.
|
<T1> PubsubIO.Write.Bound<T1> |
withCoder(Coder<T1> coder)
Returns a new PubsubIO.Write PTransform that's like this one
but that uses the given
Coder<T1> to encode each of
the elements of the input PCollection<T1> into an
output record. |
finishSpecifyingInternal, getDefaultName, getDefaultOutputCoder, getDefaultOutputCoder, getName, setName, setPipeline, toString, validate, withNamepublic PubsubIO.Write.Bound<T> named(java.lang.String name)
public PubsubIO.Write.Bound<T> topic(java.lang.String topic)
public PubsubIO.Write.Bound<T> timestampLabel(java.lang.String timestampLabel)
public PubsubIO.Write.Bound<T> idLabel(java.lang.String idLabel)
public <T1> PubsubIO.Write.Bound<T1> withCoder(Coder<T1> coder)
Coder<T1> to encode each of
the elements of the input PCollection<T1> into an
output record. Does not modify this object.T1 - the type of the elements of the input PCollectionpublic PDone apply(PCollection<T> input)
PTransformPTransform on the given Input, 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<Input, Output>, Input).
apply in class PTransform<PCollection<T>,PDone>protected Coder<java.lang.Void> getDefaultOutputCoder()
PTransformCoder to use for the output of this
single-output PTransform, or null if
none can be inferred.
By default, returns null.
getDefaultOutputCoder in class PTransform<PCollection<T>,PDone>protected java.lang.String getKindString()
PTransformPTransform this is.
By default, returns the base name of this
PTransform's class.
getKindString in class PTransform<PCollection<T>,PDone>public java.lang.String getTopic()
public java.lang.String getTimestampLabel()
public java.lang.String getIdLabel()