Re: Kafka and Binary Data

2011-12-01 Thread Jun Rao
; > 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,

Re: Kafka and Binary Data

2011-12-01 Thread Evan Chan
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

RE: Kafka and Binary Data

2011-12-01 Thread Sybrandy, Casey
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

Re: Kafka and Binary Data

2011-12-01 Thread Neha Narkhede
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