You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@apex.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2017/02/02 06:35:51 UTC

[jira] [Commented] (APEXCORE-604) Extend DAG API to allow accessing DAG objects.

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

ASF GitHub Bot commented on APEXCORE-604:
-----------------------------------------

GitHub user tushargosavi reopened a pull request:

    https://github.com/apache/apex-core/pull/447

    APEXCORE-604 extend DAG API to get operators and streams from the DAG.

    

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/tushargosavi/apex-core APEXCORE-604

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/apex-core/pull/447.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 #447
    
----
commit 962bc95d351c22fb8922a6d8c30678f43e2fc98f
Author: Tushar R. Gosavi <tu...@apache.org>
Date:   2017-01-17T06:41:12Z

    APEXCORE-604 extend DAG API to get operators and streams from the DAG.

----


> Extend DAG API to allow accessing DAG objects.
> ----------------------------------------------
>
>                 Key: APEXCORE-604
>                 URL: https://issues.apache.org/jira/browse/APEXCORE-604
>             Project: Apache Apex Core
>          Issue Type: Sub-task
>            Reporter: Tushar Gosavi
>            Assignee: Tushar Gosavi
>
> 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 extends OutputPortMeta> T getSource();
>     public <T extends InputPortMeta> Collection<T> getSinks();
> DAG
>     public abstract <T extends OperatorMeta> Collection<T> getOperators();
>     public abstract <T extends StreamMeta> Collection<T> getStreams();



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)