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 B97DC200C0D for ; Tue, 17 Jan 2017 04:40:21 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id B7F73160B4D; Tue, 17 Jan 2017 03:40:21 +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 0C33A160B41 for ; Tue, 17 Jan 2017 04:40:20 +0100 (CET) Received: (qmail 6838 invoked by uid 500); 17 Jan 2017 03:40:20 -0000 Mailing-List: contact dev-help@apex.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@apex.apache.org Delivered-To: mailing list dev@apex.apache.org Received: (qmail 6826 invoked by uid 99); 17 Jan 2017 03:40:19 -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; Tue, 17 Jan 2017 03:40:19 +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 50DCD1A0492 for ; Tue, 17 Jan 2017 03:40:19 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 0.479 X-Spam-Level: X-Spam-Status: No, score=0.479 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_SORBS_SPAM=0.5, 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 ZqHvDhWosfvi for ; Tue, 17 Jan 2017 03:40:17 +0000 (UTC) Received: from mail-yw0-f178.google.com (mail-yw0-f178.google.com [209.85.161.178]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id 9D6195F2C5 for ; Tue, 17 Jan 2017 03:40:17 +0000 (UTC) Received: by mail-yw0-f178.google.com with SMTP id l75so79885845ywb.0 for ; Mon, 16 Jan 2017 19:40:17 -0800 (PST) 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:from:date:message-id:subject:to; bh=WNId4ePYyCVPfPLoddXffGtZUXhro+ZmD6ALxgo6OJc=; b=P18YbrbFFiUhN23psBfWqslIkaErHWNrMr7aFgctK9rIAogSLXOL6RG+Wo+jg8n7nD Hvf40BVkLGN1oy2vdXDH1LXdto1+KRDzuM5vquVL/IIgKhh7ebxPesLDPvn5mEUu73AP Cx3bznOcENZij362/dzreTOnniPoPyr/E86AJDhjSSV6hJnKUSFAz6BoQgvNI8yqT5uM wds001myhbX50h56HeyNBDAg6PhppjVvS0XUAF5cK5NoHItItYX+0NlkCwQam/bLRDH9 3iEPJw/EX+uP7uu0AT3Qx/hNcw1zIiDkI1NZZDRKqjoWDBwQ1yhw+STucUhWh1YbraT9 N9yQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=WNId4ePYyCVPfPLoddXffGtZUXhro+ZmD6ALxgo6OJc=; b=UOpvby7BbwlggXrN26+934vGAv0Ktr+Xt9gGH6pDzVvtl7sD6rbiVMjeC9ieDJs4vj OaVMG7z5caqufZ7pvdV97o10Foo9JC20qDE60bSv1GpMcsT8RicNwfekNMkUgKsQIqnn brq0ijSzc5L9fJcI50UOg10PQ0xIrcHiOK0x7OBzseD+q7KDFY0hlJLOPNYHrAFaXw/K h5DLSNI0PVL0VAYPQWlqFURv9bzEiqYNgnHQ2zr+W03mjhlNnTTKjB23Mx5hPHrS4/iE Mccf2Z0pI90OIFsvch5OQnnOA6UZjvcxJ8amt8iuiYG6/uBBhrML7csx9e7q43Q87Ikj OzOw== X-Gm-Message-State: AIkVDXJTksIf/4Km5PBD3uin6cjgXejKw0eNf3fzn4HWKAWlPhckyo2mefQkKygC3ZSmn3PcF31GkgfVAhRaeocH X-Received: by 10.129.73.65 with SMTP id w62mr27352829ywa.288.1484624416262; Mon, 16 Jan 2017 19:40:16 -0800 (PST) MIME-Version: 1.0 Received: by 10.129.34.215 with HTTP; Mon, 16 Jan 2017 19:40:15 -0800 (PST) In-Reply-To: References: From: Tushar Gosavi Date: Tue, 17 Jan 2017 09:10:15 +0530 Message-ID: Subject: Re: Extending DAG API for accessing objects in DAG. To: dev@apex.apache.org Content-Type: text/plain; charset=UTF-8 archived-at: Tue, 17 Jan 2017 03:40:21 -0000 I have opened https://issues.apache.org/jira/browse/APEXCORE-604 for this. If there is no objection I will open an pull request for it. - Tushar. On Mon, Jan 9, 2017 at 4:44 PM, Tushar Gosavi wrote: > Hi All, > > I am planing extend the DAG api to export internals of the DAG. > Current DAG does not provide a way to get the list of operators and > streams with their attributes. Also streamMeta does not provide > API to access end ports. > > This type of information is needed when external translator (like > Samoa) are constructing the DAG, > and we need to apply some transformation or configure the DAG before > it is run. Planing to extend > DAG API with following. > > InputPortMeta > public Operator.InputPort getPortObject(); > OutputPortMeta > public Operator.OutputPort getPortObject(); > streamMeta > public T getSource(); > public Collection getSinks(); > DAG > public abstract Collection getOperators(); > public abstract Collection getStreams(); > > Regards, > - Tushar.