[
https://issues.apache.org/jira/browse/FLINK-1388?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14278645#comment-14278645
]
Fabian Hueske commented on FLINK-1388:
--------------------------------------
[~ajay bhat] I think we can add this features without an external library. The
PojoTypeInformation basically contains all information that is needed to access
the fields of a Pojo. Given that information, it should be relatively easy to
generate a CSV string that can be written out.
> POJO support for writeAsCsv
> ---------------------------
>
> Key: FLINK-1388
> URL: https://issues.apache.org/jira/browse/FLINK-1388
> Project: Flink
> Issue Type: New Feature
> Components: Java API
> Reporter: Timo Walther
> Priority: Minor
>
> It would be great if one could simply write out POJOs in CSV format.
> {code}
> public class MyPojo {
> String a;
> int b;
> }
> {code}
> to:
> {code}
> # CSV file of org.apache.flink.MyPojo: String a, int b
> "Hello World", 42
> "Hello World 2", 47
> ...
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)