kafka-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jun Rao <jun...@gmail.com>
Subject Re: Code Example for createMessageStreams
Date Wed, 05 Jun 2013 14:47:11 GMT
Yes, but it shouldn't be hard to extend the example. Basically, in the
stream iterator, you can do it.next().key() and the return type should be
of type K. Let us know if you need more help on this.

Thanks,

Jun


On Wed, Jun 5, 2013 at 12:43 AM, Vadim Keylis <vkeylis2009@gmail.com> wrote:

> Good evening Jun. The paged you pointed me out does not have example where
> createMessageStreams method takes two decoder objects. The example contains
> only for API where topicMap been passed.
>
> Thanks in advance,
> Vadim
> Sent from my iPad
>
> On Jun 4, 2013, at 7:50 AM, Jun Rao <junrao@gmail.com> wrote:
>
> > For 0.8, you can find the example in the following wiki.
> >
> > https://cwiki.apache.org/confluence/display/KAFKA/Consumer+Group+Example
> >
> > Thanks,
> >
> > Jun
> >
> >
> > On Tue, Jun 4, 2013 at 12:56 AM, Vadim Keylis <vkeylis2009@gmail.com>
> wrote:
> >
> >> Good evening. Would it be possible to get sample code where the api
> bellow
> >> is used in the consumer with sample of Decoder.
> >> public <K,V> Map<String, List<KafkaStream<K,V>>>
> >>    createMessageStreams(Map<String, Integer> topicCountMap, Decoder<K>
> >> keyDecoder, Decoder<V> valueDecoder);
> >>
> >> Thanks so much in advance,
> >> Vadim
> >>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message