Abacn commented on code in PR #32470:
URL: https://github.com/apache/beam/pull/32470#discussion_r1771942990
##########
sdks/java/io/mqtt/src/main/java/org/apache/beam/sdk/io/mqtt/MqttIO.java:
##########
@@ -502,6 +535,121 @@ public UnboundedMqttSource getCurrentSource() {
}
}
+ @AutoValue
+ public abstract static class DynamicWrite<InputT> extends
PTransform<PCollection<InputT>, PDone> {
+ abstract @Nullable ConnectionConfiguration connectionConfiguration();
+
+ abstract @Nullable SerializableFunction<InputT, String> topicFn();
Review Comment:
at pipeline expansion time, one can set topicFn to always return the topic,
and payloadFn to identify function for normal writes
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]