You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "Fabian Hueske (JIRA)" <ji...@apache.org> on 2015/03/11 18:21:39 UTC

[jira] [Comment Edited] (FLINK-1388) POJO support for writeAsCsv

    [ https://issues.apache.org/jira/browse/FLINK-1388?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14357234#comment-14357234 ] 

Fabian Hueske edited comment on FLINK-1388 at 3/11/15 5:21 PM:
---------------------------------------------------------------

Watch out, PojoTypeInformation is not serializable due to the non-serializable java.lang.reflect.Field.
You should rather pass the Pojo class name and the name of all fields that should be written out.


was (Author: fhueske):
Watch out, PojoTypeInformation is not serializable due to the non-serializable ``java.lang.reflect.Field``.
You should rather pass the Pojo class name and the name of all fields that should 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
>            Assignee: Adnan Khan
>            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)