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

ASF GitHub Bot commented on FLINK-1555:
---------------------------------------

Github user aljoscha commented on the pull request:

    https://github.com/apache/flink/pull/415#issuecomment-76709759
  
    I suggest putting this code into a Util, not inside the GenericTypeInfo. 
Also, CompositeType has a method getFields() that gives you the names of all 
fields. To be fair, I added this very recently. :smile: 


> Add utility to log the serializers of composite types
> -----------------------------------------------------
>
>                 Key: FLINK-1555
>                 URL: https://issues.apache.org/jira/browse/FLINK-1555
>             Project: Flink
>          Issue Type: Improvement
>            Reporter: Robert Metzger
>            Assignee: Robert Metzger
>            Priority: Minor
>
> Users affected by poor performance might want to understand how Flink is 
> serializing their data.
> Therefore, it would be cool to have a tool utility which logs the serializers 
> like this:
> {{SerializerUtils.getSerializers(TypeInformation<POJO> t);}}
> to get 
> {code}
> PojoSerializer
>     TupleSerializer
>       IntSer
>       DateSer
>       GenericTypeSer(java.sql.Date)
>     PojoSerializer
>       GenericTypeSer(HashMap)
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to