You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@flink.apache.org by ゞ野蠻遊戲χ <zh...@vip.qq.com> on 2020/08/16 11:47:38 UTC

How do i get processingTime in keyedPrcessFounction

Hi all

&nbsp; &nbsp; &nbsp; When I get the processingTime in the processElement method of the KeyedProcessFunction,&nbsp;
&nbsp; &nbsp; &nbsp; like ctx.timestamp(), which returns null, how do I get the processingTime in processElement methoed?


Thanks,
Jiazhi

Re: How do i get processingTime in keyedPrcessFounction

Posted by Mike Mintz <mi...@gmail.com>.
Hi Jiazhi,

Try ctx.timerService().currentProcessingTime()

Best,
Mike

On Sun, Aug 16, 2020 at 4:48 AM ゞ野蠻遊戲χ <zh...@vip.qq.com> wrote:

> Hi all
>
>       When I get the processingTime in the processElement method of the
> KeyedProcessFunction,
>       like ctx.timestamp(), which returns null, how do I get the
> processingTime in processElement methoed?
>
> Thanks,
> Jiazhi
>