apex-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Yogi Devendra <devendra.vyavah...@gmail.com>
Subject Re: connecting two operators
Date Mon, 22 Aug 2016 12:20:56 GMT
Define  ObjectToNumberConverter operator which accepts Object on the input
port and emits Number on its output port.

Use this operator in your DAG.

~ Yogi

On 22 August 2016 at 17:42, Hitesh Goyal <hitesh.goyal@nlpcaptcha.com>
wrote:

> Hi team,
>
>           Refer to following 3 lines of code.
>
> CouchBasePOJOInputOperator inputOperator = dag.addOperator("inputOperator",
> CouchBasePOJOInputOperator.*class*);
>
> MedianOperator median = dag.addOperator("median", MedianOperator.*class*);
>
> dag.*addStream*("med", inputOperator.outputPort.getClass(), median.data);
>
>
>
>     It is giving error in the last line that the method is not applicable
> as these arguments.
>
>     How should I convert Object to Number so that I can input the data to
> Median Operator Class
>
>
>
>
>
> Regards,
>
> *Hitesh Goyal*
>
> Simpli5d Technologies
>
> Cont No.: 9599803307
>
>
>

Mime
View raw message