public static class PubsubIO.Read.Bound extends PTransform<PInput,PCollection<java.lang.String>>
name| Modifier and Type | Method and Description |
|---|---|
PCollection<java.lang.String> |
apply(PInput input)
Applies this
PTransform on the given Input, and returns its
Output. |
PubsubIO.Read.Bound |
dropLateData(boolean dropLateData)
Returns a new PubsubIO.Read PTransform that's like this one but with the specified
setting for dropLateData.
|
protected Coder<java.lang.String> |
getDefaultOutputCoder()
Returns the default
Coder to use for the output of this
single-output PTransform, or null if
none can be inferred. |
boolean |
getDropLateData() |
boolean |
getDropLateDataExplicit() |
java.lang.String |
getIdLabel() |
protected java.lang.String |
getKindString()
Returns a string describing what kind of
PTransform this is. |
java.lang.String |
getSubscription() |
java.lang.String |
getTimestampLabel() |
java.lang.String |
getTopic() |
PubsubIO.Read.Bound |
idLabel(java.lang.String idLabel)
Returns a new PubsubIO.Read PTransform that's like this one but reading unique ids
from the given PubSub label.
|
PubsubIO.Read.Bound |
named(java.lang.String name)
Returns a new PubsubIO.Read PTransform that's like this one but with the given
step name.
|
PubsubIO.Read.Bound |
subscription(java.lang.String subscription)
Returns a new PubsubIO.Read PTransform that's like this one but reading from the
given subscription.
|
PubsubIO.Read.Bound |
timestampLabel(java.lang.String timestampLabel)
Returns a new PubsubIO.Read PTransform that's like this one but reading timestamps
from the given PubSub label.
|
PubsubIO.Read.Bound |
topic(java.lang.String topic)
Returns a new PubsubIO.Read PTransform that's like this one but reading from the
give topic.
|
finishSpecifying, getCoderRegistry, getDefaultName, getDefaultOutputCoder, getInput, getName, getOutput, getPipeline, setName, setPipeline, toString, withNamepublic PubsubIO.Read.Bound named(java.lang.String name)
public PubsubIO.Read.Bound subscription(java.lang.String subscription)
public PubsubIO.Read.Bound topic(java.lang.String topic)
public PubsubIO.Read.Bound timestampLabel(java.lang.String timestampLabel)
public PubsubIO.Read.Bound dropLateData(boolean dropLateData)
public PubsubIO.Read.Bound idLabel(java.lang.String idLabel)
public PCollection<java.lang.String> apply(PInput 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<PInput,PCollection<java.lang.String>>protected Coder<java.lang.String> 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<PInput,PCollection<java.lang.String>>protected java.lang.String getKindString()
PTransformPTransform this is.
By default, returns the base name of this
PTransform's class.
getKindString in class PTransform<PInput,PCollection<java.lang.String>>public java.lang.String getTopic()
public java.lang.String getSubscription()
public java.lang.String getTimestampLabel()
public boolean getDropLateData()
public boolean getDropLateDataExplicit()
public java.lang.String getIdLabel()