Thanks Damian.
I think I'm convinced to introduce a new class for the sake of semantics
clarity plus being able to expose record context along with it. I'm going
to update the KIP and start the voting thread now.
On Thu, May 17, 2018 at 10:49 AM, Damian Guy wrote:
> Hi Guozhang, yes i think it
Hi Guozhang, yes i think it would make sense to add this now as having the
additional record context would be valuable. Though i'm happy either way.
On Wed, 16 May 2018 at 23:07 Guozhang Wang wrote:
> Hi Damian,
>
> My current plan is to add the "RichKeyValueMapper" when getting in KIP-159
> to
Hi Damian,
My current plan is to add the "RichKeyValueMapper" when getting in KIP-159
to include the record context in this dynamic routing feature. So just to
clarify: are you more concerning that if we are going to do that anyways in
the future, we should not add overloaded functions with "KeyVa
Overall i'm a +1 on this, but i'm not a big fan of using the KeyValueMapper
to choose the topic. It is a bit counter-intuitve to me. I'd prefer to add
a class specifically for it and possibly pass in the RecordContext
On Wed, 16 May 2018 at 13:22 Guozhang Wang wrote:
> Hello folks,
>
> Please le
Hello folks,
Please let me know if you have further feedbacks; if there is no more
feedbacks I'm going to start the voting thread soon.
Guozhang
On Wed, May 16, 2018 at 8:31 AM, Guozhang Wang wrote:
> I have thought about exposing record context as well, and in the end I
> decided to piggy-b
I have thought about exposing record context as well, and in the end I
decided to piggy-back it with KIP-159. And if we want to indeed reuse the
class it will be:
```
public interface RichKeyValueMapper {
VR apply(final K key, final V value, final RecordContext recordContext);
}
```
Guozhan
Just my 2 cents:
I am fine with `KeyValueMapper` (+1 for code reusage) -- the JavaDocs
will explain what the `KeyValueMapper` is supposed to do, ie, extract
and return the sink topic name from the key-value pair.
A side remark though: do we think that accessing key/value is
sufficient? Or should
Thanks for the KIP Guozhang, it's a +1 for me.
As for re-using the KeyValueMapper for choosing the topic, I am on the
fence, a more explicitly named class would be more clear, but I'm not sure
it's worth a new class that will primarily perform the same actions as the
KeyValueMapper.
Thanks,
Bill
Hello John:
* As for the type superclass, it is mainly for allowing super class serdes.
More details can be found here:
https://cwiki.apache.org/confluence/display/KAFKA/KIP-100+-+Relax+Type+constraints+in+Kafka+Streams+API
* I may have slight preference on reusing existing classes but I think mo
Thanks for the KIP.
+1
@John: compare
https://cwiki.apache.org/confluence/display/KAFKA/KIP-100+-+Relax+Type+constraints+in+Kafka+Streams+API
about the generics
-Matthias
On 5/15/18 11:19 AM, John Roesler wrote:
> Thanks for the KIP, Guozhang.
>
> It looks good overall to me; I just have one
Thanks for the KIP, Guozhang.
It looks good overall to me; I just have one question:
* Why do we bound the generics of KVMapper in KStream to be superclass-of-K
and superclass-of-V instead of exactly K and V, as in Topology? I might be
thinking about it wrong, but that seems backwards to me. If an
Hello folks,
I'd like to start a discussion on adding dynamic routing functionality in
Streams sink node. I.e. users do not need to specify the topic name at
compilation time but can dynamically determine which topic to send to based
on each record's key value pairs. Please find a KIP here:
https
12 matches
Mail list logo