public abstract static class PulsarIO.Read extends PTransform<PBegin,PCollection<PulsarMessage>>
name, resourceHints
Constructor and Description |
---|
Read() |
Modifier and Type | Method and Description |
---|---|
PCollection<PulsarMessage> |
expand(PBegin input)
Override this method to specify how this
PTransform should be expanded on the given
InputT . |
PulsarIO.Read |
withAdminUrl(java.lang.String url) |
PulsarIO.Read |
withClientUrl(java.lang.String url) |
PulsarIO.Read |
withEndMessageId(org.apache.pulsar.client.api.MessageId msgId) |
PulsarIO.Read |
withEndTimestamp(java.lang.Long timestamp) |
PulsarIO.Read |
withExtractOutputTimestampFn(SerializableFunction<org.apache.pulsar.client.api.Message<byte[]>,Instant> fn) |
PulsarIO.Read |
withProcessingTime() |
PulsarIO.Read |
withPublishTime() |
PulsarIO.Read |
withPulsarClient(SerializableFunction<java.lang.String,org.apache.pulsar.client.api.PulsarClient> pulsarClientFn) |
PulsarIO.Read |
withStartTimestamp(java.lang.Long timestamp) |
PulsarIO.Read |
withTopic(java.lang.String topic) |
compose, compose, getAdditionalInputs, getDefaultOutputCoder, getDefaultOutputCoder, getDefaultOutputCoder, getKindString, getName, getResourceHints, populateDisplayData, setResourceHints, toString, validate
public PulsarIO.Read withAdminUrl(java.lang.String url)
public PulsarIO.Read withClientUrl(java.lang.String url)
public PulsarIO.Read withTopic(java.lang.String topic)
public PulsarIO.Read withStartTimestamp(java.lang.Long timestamp)
public PulsarIO.Read withEndTimestamp(java.lang.Long timestamp)
public PulsarIO.Read withEndMessageId(org.apache.pulsar.client.api.MessageId msgId)
public PulsarIO.Read withExtractOutputTimestampFn(SerializableFunction<org.apache.pulsar.client.api.Message<byte[]>,Instant> fn)
public PulsarIO.Read withPublishTime()
public PulsarIO.Read withProcessingTime()
public PulsarIO.Read withPulsarClient(SerializableFunction<java.lang.String,org.apache.pulsar.client.api.PulsarClient> pulsarClientFn)
public PCollection<PulsarMessage> expand(PBegin input)
PTransform
PTransform
should be expanded on the given
InputT
.
NOTE: This method should not be called directly. Instead apply the PTransform
should
be applied to the InputT
using the apply
method.
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).
expand
in class PTransform<PBegin,PCollection<PulsarMessage>>