; > Sent: Thursday, December 01, 2011 2:57 PM
> > To: kafka-users@incubator.apache.org
> > Subject: Re: Kafka and Binary Data
> >
> > Hi Casey,
> >
> > Yes, you can send messages as byte arrays. If you look at the constructor
> > of the Message class,
l.com]
> Sent: Thursday, December 01, 2011 2:57 PM
> To: kafka-users@incubator.apache.org
> Subject: Re: Kafka and Binary Data
>
> Hi Casey,
>
> Yes, you can send messages as byte arrays. If you look at the constructor
> of the Message class, you will see -
>
> def this
Perfect, thanks!
From: Neha Narkhede [neha.narkh...@gmail.com]
Sent: Thursday, December 01, 2011 2:57 PM
To: kafka-users@incubator.apache.org
Subject: Re: Kafka and Binary Data
Hi Casey,
Yes, you can send messages as byte arrays. If you look at the
Hi Casey,
Yes, you can send messages as byte arrays. If you look at the constructor
of the Message class, you will see -
def this(bytes: Array[Byte])
Now, looking at the Producer send() API -
def send(producerData: ProducerData[K,V]*)
You can set V to be of type Message and K to what you want