|
19 | 19 | # configuration in /sdks/standard_expansion_services.yaml. |
20 | 20 | # Refer to gen_xlang_wrappers.py for more info. |
21 | 21 | # |
22 | | -# Last updated on: 2026-05-06 |
| 22 | +# Last updated on: 2026-06-11 |
23 | 23 |
|
24 | 24 | - default_service: sdks:java:io:expansion-service:shadowJar |
25 | 25 | description: 'Outputs a PCollection of Beam Rows, each containing a single INT64 |
|
145 | 145 | type: str |
146 | 146 | identifier: beam:schematransform:org.apache.beam:tfrecord_write:v1 |
147 | 147 | name: TfrecordWrite |
| 148 | +- default_service: sdks:java:io:messaging-expansion-service:shadowJar |
| 149 | + description: 'Reads messages from an MQTT broker and outputs each payload as a single |
| 150 | + `bytes` field. |
| 151 | +
|
| 152 | +
|
| 153 | + By default the read is unbounded (streaming): it keeps consuming messages from |
| 154 | + the subscribed topic until the pipeline is stopped. Setting `maxNumRecords` and/or |
| 155 | + `maxReadTimeSeconds` bounds the read, producing a bounded (batch) PCollection. |
| 156 | +
|
| 157 | +
|
| 158 | + Note: streaming reads require a runner that supports portable streaming (e.g. |
| 159 | + Prism, Flink, or Dataflow). The legacy local Python DirectRunner does not execute |
| 160 | + portable streaming cross-language reads.' |
| 161 | + destinations: |
| 162 | + python: apache_beam/io |
| 163 | + fields: |
| 164 | + - description: Configuration options to set up the MQTT connection. |
| 165 | + name: connection_configuration |
| 166 | + nullable: false |
| 167 | + type: Row(client_id=typing.Optional[str], password=typing.Optional[str], server_uri=<class |
| 168 | + 'str'>, topic=typing.Optional[str], username=typing.Optional[str]) |
| 169 | + - description: The max number of records to receive. Setting this will result in |
| 170 | + a bounded PCollection. |
| 171 | + name: max_num_records |
| 172 | + nullable: true |
| 173 | + type: int64 |
| 174 | + - description: The maximum time for this source to read messages. Setting this will |
| 175 | + result in a bounded PCollection. |
| 176 | + name: max_read_time_seconds |
| 177 | + nullable: true |
| 178 | + type: int64 |
| 179 | + identifier: beam:schematransform:org.apache.beam:mqtt_read:v1 |
| 180 | + name: ReadFromMqtt |
| 181 | +- default_service: sdks:java:io:messaging-expansion-service:shadowJar |
| 182 | + description: 'Publishes messages to an MQTT broker. Expects an input PCollection |
| 183 | + of rows with a single `bytes` field, each of which is published as one MQTT message. |
| 184 | +
|
| 185 | +
|
| 186 | + Works with both bounded (batch) and unbounded (streaming) input PCollections.' |
| 187 | + destinations: |
| 188 | + python: apache_beam/io |
| 189 | + fields: |
| 190 | + - description: Configuration options to set up the MQTT connection. |
| 191 | + name: connection_configuration |
| 192 | + nullable: false |
| 193 | + type: Row(client_id=typing.Optional[str], password=typing.Optional[str], server_uri=<class |
| 194 | + 'str'>, topic=typing.Optional[str], username=typing.Optional[str]) |
| 195 | + - description: Whether or not the publish message should be retained by the messaging |
| 196 | + engine. When a subscriber connects, it gets the latest retained message. Defaults |
| 197 | + to `False`, which will clear the retained message from the server. |
| 198 | + name: retained |
| 199 | + nullable: true |
| 200 | + type: boolean |
| 201 | + identifier: beam:schematransform:org.apache.beam:mqtt_write:v1 |
| 202 | + name: WriteToMqtt |
0 commit comments