[
https://issues.apache.org/jira/browse/SAMZA-110?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13896852#comment-13896852
]
Jakob Homan commented on SAMZA-110:
-----------------------------------
You mean for the Serializer interface? Yeah, unfortunately the most natural
type parameter here would be an Array[Byte], but that's not going to play
nicely with Java's erasures and generics. One slightly tricky solution would
be to wrap the primitive byte array, (ala
http://stackoverflow.com/questions/7041636/generic-solution-for-primitive-array).
That would play nice with the type system, avoid any boxing/unboxing cost and
only add a bit of overhead. Haven't though through how it will play with the
rest of the interface though.
> Write a ByteSerde
> -----------------
>
> Key: SAMZA-110
> URL: https://issues.apache.org/jira/browse/SAMZA-110
> Project: Samza
> Issue Type: Bug
> Components: container
> Affects Versions: 0.6.0
> Reporter: Chris Riccomini
>
> It would be good to have a ByteSerde included in samza-core's serializer
> package. This serde should just be a no-op that returns the arrays it's given.
--
This message was sent by Atlassian JIRA
(v6.1.5#6160)