You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@beam.apache.org by "Beam JIRA Bot (Jira)" <ji...@apache.org> on 2020/09/02 17:08:38 UTC
[jira] [Commented] (BEAM-2228) XmlIO could work with a PCollection
[ https://issues.apache.org/jira/browse/BEAM-2228?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17189492#comment-17189492 ]
Beam JIRA Bot commented on BEAM-2228:
-------------------------------------
This issue was marked "stale-P2" and has not received a public comment in 14 days. It is now automatically moved to P3. If you are still affected by it, you can comment and move it back to P2.
> XmlIO could work with a PCollection
> -----------------------------------
>
> Key: BEAM-2228
> URL: https://issues.apache.org/jira/browse/BEAM-2228
> Project: Beam
> Issue Type: New Feature
> Components: io-ideas
> Reporter: Jean-Baptiste Onofré
> Priority: P3
>
> Currently, {{XmlIO}} can "only" read from a XML file (using {{from()}}).
> I could be interesting to have XmlIO "generic" {{PTransform}} to convert each element in an incoming {{PCollection}} as POJO.
> For instance, doing something like:
> {code}
> pipeline.apply("Receive XML from JMS", JmsIO.read().withConnectionFactory(xx).withQueue("MyQueue"))
> .apply("Convert as POJO", XmlIO.read()...)
> .apply("Convert POJO to something else", ....)
> .apply("Store somewhere", ...))
> {code}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)