[ https://issues.apache.org/jira/browse/KAFKA-3336?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15194545#comment-15194545 ]
ASF GitHub Bot commented on KAFKA-3336: --------------------------------------- GitHub user guozhangwang opened a pull request: https://github.com/apache/kafka/pull/1066 KAFKA-3336: Unify Serializer and Deserializer into Serialization You can merge this pull request into a Git repository by running: $ git pull https://github.com/guozhangwang/kafka K3336 Alternatively you can review and apply these changes as the patch at: https://github.com/apache/kafka/pull/1066.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #1066 ---- commit ed8245a35397ed1a1a28141a18e5182acaaeceda Author: Guozhang Wang <wangg...@gmail.com> Date: 2016-03-14T22:08:55Z reuse Serde for unification commit 6264c4eadf37f8cfe16909f1ee328c33eb00c30f Author: Guozhang Wang <wangg...@gmail.com> Date: 2016-03-15T01:46:50Z K3336 v1 ---- > Unify ser/de pair classes into one serde class > ---------------------------------------------- > > Key: KAFKA-3336 > URL: https://issues.apache.org/jira/browse/KAFKA-3336 > Project: Kafka > Issue Type: Sub-task > Reporter: Guozhang Wang > Assignee: Guozhang Wang > Priority: Blocker > Fix For: 0.10.0.0 > > > Right now users must provide two separate classes for serializers and > deserializers, respectively. This means the current API functions have at > least 2 * numberOfTypes parameters. > *Example (current, bad): "foo(..., longSerializer, longDeserializer)".* > Because the serde aspect of the API is already one of the biggest UX issues, > we should unify the serde functionality into a single serde class, i.e. one > class that provides both serialization and deserialization functionality. > This will reduce the number of required serde parameters in the API by 50%. > *Example (suggested, better): "foo(..., longSerializerDeserializer)"*. > * Note: This parameter name is horrible and only used to highlight the > difference to the "current" example above. > We also want to 1) add a pairing function for each operator that does not > require serialization and 2) add a default serde in the configs to make these > not required configs. -- This message was sent by Atlassian JIRA (v6.3.4#6332)