You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@kafka.apache.org by Jay Kreps <ja...@gmail.com> on 2012/09/04 21:52:21 UTC
MessageSet.getSerialized()
It seems really kludgey that MessageSet would have a getSerialized()
method. What does being a set of messages have to do with serialization?
-Jay
Re: MessageSet.getSerialized()
Posted by Jun Rao <ju...@gmail.com>.
Currently, getSerialized() is only used when constructing a sendByteBuffer
from a ProducerRequest.
Thanks,
Jun
On Tue, Sep 4, 2012 at 3:35 PM, Jay Kreps <ja...@gmail.com> wrote:
> But isn't a MessageSet always also a byte-standardized representation? I
> can't figure out from the docs or usage what this is for...
>
> -Jay
>
> On Tue, Sep 4, 2012 at 2:54 PM, Jun Rao <ju...@gmail.com> wrote:
>
> > It's getting the binary representation of a set of messages. Probably it
> > can be changed to something like getBinary()?
> >
> > Thanks,
> >
> > Jun
> >
> > On Tue, Sep 4, 2012 at 12:52 PM, Jay Kreps <ja...@gmail.com> wrote:
> >
> > > It seems really kludgey that MessageSet would have a getSerialized()
> > > method. What does being a set of messages have to do with
> serialization?
> > >
> > > -Jay
> > >
> >
>
Re: MessageSet.getSerialized()
Posted by Jay Kreps <ja...@gmail.com>.
But isn't a MessageSet always also a byte-standardized representation? I
can't figure out from the docs or usage what this is for...
-Jay
On Tue, Sep 4, 2012 at 2:54 PM, Jun Rao <ju...@gmail.com> wrote:
> It's getting the binary representation of a set of messages. Probably it
> can be changed to something like getBinary()?
>
> Thanks,
>
> Jun
>
> On Tue, Sep 4, 2012 at 12:52 PM, Jay Kreps <ja...@gmail.com> wrote:
>
> > It seems really kludgey that MessageSet would have a getSerialized()
> > method. What does being a set of messages have to do with serialization?
> >
> > -Jay
> >
>
Re: MessageSet.getSerialized()
Posted by Jun Rao <ju...@gmail.com>.
It's getting the binary representation of a set of messages. Probably it
can be changed to something like getBinary()?
Thanks,
Jun
On Tue, Sep 4, 2012 at 12:52 PM, Jay Kreps <ja...@gmail.com> wrote:
> It seems really kludgey that MessageSet would have a getSerialized()
> method. What does being a set of messages have to do with serialization?
>
> -Jay
>