public abstract static class MqttIO.Read extends PTransform<PBegin,PCollection<byte[]>>
PTransform to read from a MQTT broker.name| Constructor and Description |
|---|
Read() |
| Modifier and Type | Method and Description |
|---|---|
PCollection<byte[]> |
expand(PBegin input) |
void |
populateDisplayData(DisplayData.Builder builder) |
void |
validate(PBegin input) |
MqttIO.Read |
withConnectionConfiguration(MqttIO.ConnectionConfiguration configuration)
Define the MQTT connection configuration used to connect to the MQTT broker.
|
MqttIO.Read |
withMaxNumRecords(long maxNumRecords)
Define the max number of records received by the
MqttIO.Read. |
MqttIO.Read |
withMaxReadTime(org.joda.time.Duration maxReadTime)
Define the max read time (duration) while the
MqttIO.Read will receive messages. |
getDefaultOutputCoder, getDefaultOutputCoder, getDefaultOutputCoder, getKindString, getName, toStringpublic MqttIO.Read withConnectionConfiguration(MqttIO.ConnectionConfiguration configuration)
public MqttIO.Read withMaxNumRecords(long maxNumRecords)
MqttIO.Read.
When this max number of records is lower than Long.MAX_VALUE, the MqttIO.Read
will provide a bounded PCollection.public MqttIO.Read withMaxReadTime(org.joda.time.Duration maxReadTime)
MqttIO.Read will receive messages.
When this max read time is not null, the MqttIO.Read will provide a bounded
PCollection.public PCollection<byte[]> expand(PBegin input)
expand in class PTransform<PBegin,PCollection<byte[]>>public void validate(PBegin input)
validate in class PTransform<PBegin,PCollection<byte[]>>public void populateDisplayData(DisplayData.Builder builder)
populateDisplayData in interface HasDisplayDatapopulateDisplayData in class PTransform<PBegin,PCollection<byte[]>>Copyright © 2016–2017 The Apache Software Foundation. All rights reserved.