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 8113D200CD5 for ; Sun, 30 Jul 2017 12:22:05 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 7FA26164742; Sun, 30 Jul 2017 10:22:05 +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 C608F164740 for ; Sun, 30 Jul 2017 12:22:04 +0200 (CEST) Received: (qmail 99203 invoked by uid 500); 30 Jul 2017 10:22:04 -0000 Mailing-List: contact jira-help@kafka.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: jira@kafka.apache.org Delivered-To: mailing list jira@kafka.apache.org Received: (qmail 99191 invoked by uid 99); 30 Jul 2017 10:22:03 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 30 Jul 2017 10:22:03 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 6E5DF1A0653 for ; Sun, 30 Jul 2017 10:22:03 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -100.002 X-Spam-Level: X-Spam-Status: No, score=-100.002 tagged_above=-999 required=6.31 tests=[RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id YMzCQYCnt5Et for ; Sun, 30 Jul 2017 10:22:02 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id CAB1C5FBB1 for ; Sun, 30 Jul 2017 10:22:01 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 1207BE0D54 for ; Sun, 30 Jul 2017 10:22:01 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 5744D24652 for ; Sun, 30 Jul 2017 10:22:00 +0000 (UTC) Date: Sun, 30 Jul 2017 10:22:00 +0000 (UTC) From: "ASF GitHub Bot (JIRA)" To: jira@kafka.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (KAFKA-4218) Enable access to key in ValueTransformer MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Sun, 30 Jul 2017 10:22:05 -0000 [ https://issues.apache.org/jira/browse/KAFKA-4218?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16106421#comment-16106421 ] ASF GitHub Bot commented on KAFKA-4218: --------------------------------------- GitHub user jeyhunkarimov opened a pull request: https://github.com/apache/kafka/pull/3598 KAFKA-4218: Add withkey methods to KStream This PR aims to add withKey methods to KStream interface. This PR is part of [KIP-149](https://cwiki.apache.org/confluence/display/KAFKA/KIP-149%3A+Enabling+key+access+in+ValueTransformer%2C+ValueMapper%2C+and+ValueJoiner). I separated the complete PR into 4 parts as discussed in [here](https://github.com/apache/kafka/pull/3570#issuecomment-317645747). So, this PR concentrates on adding withKey methods to KStream interface. You can merge this pull request into a Git repository by running: $ git pull https://github.com/jeyhunkarimov/kafka KIP-149_KStream Alternatively you can review and apply these changes as the patch at: https://github.com/apache/kafka/pull/3598.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #3598 ---- commit c37be59024ea7fd69e1a8ffe2bae1272c3035aec Author: Jeyhun Karimov Date: 2017-07-28T23:25:59Z Add withkey interfaces Add withkey interfaces Add withKey converters in AbstractStream Add KStream withKey interfaces Remove unnecessary lines ---- > Enable access to key in ValueTransformer > ---------------------------------------- > > Key: KAFKA-4218 > URL: https://issues.apache.org/jira/browse/KAFKA-4218 > Project: Kafka > Issue Type: Improvement > Components: streams > Affects Versions: 0.10.0.1 > Reporter: Elias Levy > Assignee: Jeyhun Karimov > Labels: api, kip > Fix For: 1.0.0 > > > While transforming values via {{KStream.transformValues}} and {{ValueTransformer}}, the key associated with the value may be needed, even if it is not changed. For instance, it may be used to access stores. > As of now, the key is not available within these methods and interfaces, leading to the use of {{KStream.transform}} and {{Transformer}}, and the unnecessary creation of new {{KeyValue}} objects. > KIP-149: https://cwiki.apache.org/confluence/display/KAFKA/KIP-149%3A+Enabling+key+access+in+ValueTransformer%2C+ValueMapper%2C+and+ValueJoiner -- This message was sent by Atlassian JIRA (v6.4.14#64029)