You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@kafka.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2017/01/11 17:12:48 UTC

[jira] [Commented] (KAFKA-4481) Relax Kafka Streams API type constraints

    [ https://issues.apache.org/jira/browse/KAFKA-4481?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15818865#comment-15818865 ] 

ASF GitHub Bot commented on KAFKA-4481:
---------------------------------------

Github user asfgit closed the pull request at:

    https://github.com/apache/kafka/pull/2205


> Relax Kafka Streams API type constraints
> ----------------------------------------
>
>                 Key: KAFKA-4481
>                 URL: https://issues.apache.org/jira/browse/KAFKA-4481
>             Project: Kafka
>          Issue Type: Bug
>          Components: streams
>            Reporter: Xavier Léauté
>            Assignee: Xavier Léauté
>              Labels: kip, usability
>             Fix For: 0.10.2.0
>
>
> Streams API methods that apply transformations to streams are currently invariant in the key and value types, when they should probably be contravariant in those types.
> For instance, {{KStream.filter(Predicate<K, V> predicate)}} should be {{KStream.filter(Predicate<? super K, ? super V> predicate)}} to accept predicates that can act on any supertype of K, or V.
> Same thing applies to method that take {{Aggregator}}, {{StreamPartitioner}}, {{KeyValueMapper}}, {{ValueMapper}}, {{ProcessorSupplier}}, {{ValueJoiner}}, etc.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)