apex-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Munagala Ramanath <...@datatorrent.com>
Subject Re: Making inherited operator port optional
Date Thu, 21 Jan 2016 15:18:26 GMT
In OutputPortFieldAnnotation.java we have this:

  public boolean optional() default true;

So looks like output ports are optional by default. If A annotates the port
as "optional = true", you're out of luck.


On Thu, Jan 21, 2016 at 6:57 AM, Yogi Devendra <yogidevendra@apache.org>

> I have Operator B extends Operator A.
> Operator A is from malhar library.
> Operator A declares output port P.
> For Operator B; I wish to make port P (inherited from A) as optional
> (without changing original operator A source code from malhar).
> Is there any way to achieve this?
> ~ Yogi

View raw message