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 2B9372004CA for ; Wed, 11 May 2016 17:43:34 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 2A1C2160A14; Wed, 11 May 2016 15:43:34 +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 437B3160A09 for ; Wed, 11 May 2016 17:43:33 +0200 (CEST) Received: (qmail 23879 invoked by uid 500); 11 May 2016 15:43:32 -0000 Mailing-List: contact dev-help@apex.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@apex.incubator.apache.org Delivered-To: mailing list dev@apex.incubator.apache.org Received: (qmail 23855 invoked by uid 99); 11 May 2016 15:43:31 -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; Wed, 11 May 2016 15:43:31 +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 851E81A0CD6 for ; Wed, 11 May 2016 15:43:31 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.279 X-Spam-Level: * X-Spam-Status: No, score=1.279 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=2, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd2-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=datatorrent-com.20150623.gappssmtp.com Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id m6IRRDx0cdFC for ; Wed, 11 May 2016 15:43:29 +0000 (UTC) Received: from mail-pa0-f46.google.com (mail-pa0-f46.google.com [209.85.220.46]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id 05FED5F2C5 for ; Wed, 11 May 2016 15:43:28 +0000 (UTC) Received: by mail-pa0-f46.google.com with SMTP id bt5so18746339pac.3 for ; Wed, 11 May 2016 08:43:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=datatorrent-com.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:date:message-id:subject:from:to; bh=457lIy7h1ImnoRURxRpBLh/+lxhR8a+N0m4W4Wnq9NE=; b=HgNS2+qr336QGYVhpp+WWbADXbiOdKfW54vpuAJDO8Ustm/mgzrdvBhmwBBMv3J5eX m070RqxD9ZcrZu+ljW4auuosQPsxrhzcJL+FN5tenTePY9FmOATjMDYY+U1CN45woD6g 1dlJ1oB37uzwuzfo1CWSk0rOY9Sm3sowj+VzCnBLZQwopsSC/61n0sK+7tXYtpIs5Ydm 3ZCfhvgKSLa8rOh8gPX6IBnFDIQTIZSl7Z8DDI9bTqTUQ/LcJTYAddsKqsjt4KsKIjEl 5zBZQwyhT7mHXe10G63nLvlLYGXtjkRDk8W/7LkdPft2VesEEyk6e6PkOXiwU9GfX0fu 48Kw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to; bh=457lIy7h1ImnoRURxRpBLh/+lxhR8a+N0m4W4Wnq9NE=; b=RFt0d3xzfMilJqvXD4n3dOTkTPC7zjKyh4L8QOsBSdXHyzhed6Z7Foi5L9mbKqphUZ wZv+1BUsw32pLw99Ju9aTINoQyV0TrCKGd5E3QBFXlO8bY8FGtPv9KeBmtnppDUk3z6A GdQOip961F05wMYJKQyD0+qzW7UTL583vYupfZ2Sii6d2lu0Gt42sCyfi/ExUEUG8PtF kfBxrqqH3n8dWJv7oPW7j5Z/hesXGUbqBoK1V5pzvpzJ7uWRhz4ZLOC53bX0t4ILxwVd 3lFYm9J6nbRHnWRGgyS41HXuWRzO+TD0XBALrV2O8MFCsfSP9wKocPYD6rpbp/XCZpYR p2sA== X-Gm-Message-State: AOPr4FX5CEaMpJYftuJZvDJGXOZHKJnvSmy6sciEtWMLjl9QXPvKMuQhdaqdGTgqsx4XsuATO/835hgUyX4FVbuW MIME-Version: 1.0 X-Received: by 10.66.222.39 with SMTP id qj7mr5925667pac.7.1462981407946; Wed, 11 May 2016 08:43:27 -0700 (PDT) Received: by 10.66.16.134 with HTTP; Wed, 11 May 2016 08:43:27 -0700 (PDT) In-Reply-To: References: Date: Wed, 11 May 2016 08:43:27 -0700 Message-ID: Subject: Re: APEXMALHAR-2084 - Getters and setters for Kafka are not consistent for topics and clusters From: Munagala Ramanath To: dev@apex.incubator.apache.org Content-Type: multipart/alternative; boundary=047d7b5d43482259c1053292e7a0 archived-at: Wed, 11 May 2016 15:43:34 -0000 --047d7b5d43482259c1053292e7a0 Content-Type: text/plain; charset=UTF-8 Yes, making the accessor types match the field will avoid confusion, so +1. We can add accessors like getTopicItem() and setTopicItem() for the individual elements if necessary. Ram On Wed, May 11, 2016 at 12:08 AM, Bhupesh Chawda wrote: > Hi All, > > The fields in Kafka Input Operator in Malhar kafka project are of type > String array. However the getters and setters are not consistent and have a > return type and parameters of String type respectively. > This may cause issues in down stream systems and hence must be fixed. I > have created a JIRA to track this - > https://issues.apache.org/jira/browse/APEXMALHAR-2084 > > I am proposing that the types of these fields be made List instead > of String[ ]. Additionally also make the getters and setters accept > parameters and return data of the same type. > > Please let me know your thoughts on the same. > > Thanks > ~Bhupesh > --047d7b5d43482259c1053292e7a0--