Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 728E1200BFB for ; Wed, 11 Jan 2017 18:12:50 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 718A3160B4E; Wed, 11 Jan 2017 17:12:50 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id D50F5160B51 for ; Wed, 11 Jan 2017 18:12:49 +0100 (CET) Received: (qmail 69292 invoked by uid 500); 11 Jan 2017 17:12:48 -0000 Mailing-List: contact dev-help@kafka.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@kafka.apache.org Delivered-To: mailing list dev@kafka.apache.org Received: (qmail 69087 invoked by uid 99); 11 Jan 2017 17:12:48 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 11 Jan 2017 17:12:48 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id ADED22C03E1 for ; Wed, 11 Jan 2017 17:12:48 +0000 (UTC) Date: Wed, 11 Jan 2017 17:12:48 +0000 (UTC) From: "ASF GitHub Bot (JIRA)" To: dev@kafka.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (KAFKA-4481) Relax Kafka Streams API type constraints MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Wed, 11 Jan 2017 17:12:50 -0000 [ https://issues.apache.org/jira/browse/KAFKA-4481?page=3Dcom.atlassian= .jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D1581= 8865#comment-15818865 ]=20 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=C3=A9aut=C3=A9 > Assignee: Xavier L=C3=A9aut=C3=A9 > Labels: kip, usability > Fix For: 0.10.2.0 > > > Streams API methods that apply transformations to streams are currently i= nvariant in the key and value types, when they should probably be contravar= iant in those types. > For instance, {{KStream.filter(Predicate predicate)}} should be {{K= Stream.filter(Predicate predicate)}} to accept predic= ates that can act on any supertype of K, or V. > Same thing applies to method that take {{Aggregator}}, {{StreamPartitione= r}}, {{KeyValueMapper}}, {{ValueMapper}}, {{ProcessorSupplier}}, {{ValueJoi= ner}}, etc. -- This message was sent by Atlassian JIRA (v6.3.4#6332)