apex-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bhupeshchawda <...@git.apache.org>
Subject [GitHub] incubator-apex-core pull request: APEX-103: Add module and dag int...
Date Tue, 03 Nov 2015 05:46:28 GMT
Github user bhupeshchawda commented on a diff in the pull request:

    https://github.com/apache/incubator-apex-core/pull/148#discussion_r43717955
  
    --- Diff: api/src/main/java/com/datatorrent/api/Operator.java ---
    @@ -172,6 +172,51 @@ public String toString()
     
       }
     
    +  public interface ProxyPort<T> extends Port
    +  {
    +    void set(T port);
    +
    +    T get();
    +  }
    +
    +  public final class ProxyInputPort<T> extends DefaultInputPort<T> implements
ProxyPort<InputPort<T>>
    +  {
    +    InputPort<T> inputPort;
    +
    +    @Override
    +    public void process(T tuple)
    +    {
    +    }
    +
    +    @Override
    +    public void set(InputPort<T> port)
    +    {
    +      inputPort = port;
    +    }
    +
    +    @Override
    +    public InputPort<T> get()
    +    {
    +      return inputPort;
    +    }
    +
    +  }
    +
    +  public final class ProxyOutputPort<T> extends DefaultOutputPort<T> implements
ProxyPort<OutputPort<T>>
    --- End diff --
    
    Similar reason as for ProxyInputPort.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

Mime
View raw message