You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@beam.apache.org by "Beam JIRA Bot (Jira)" <ji...@apache.org> on 2020/09/07 17:08:00 UTC

[jira] [Commented] (BEAM-7155) Provide access to within DoFn.OnTimerContext

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

Beam JIRA Bot commented on BEAM-7155:
-------------------------------------

This issue was marked "stale-P2" and has not received a public comment in 14 days. It is now automatically moved to P3. If you are still affected by it, you can comment and move it back to P2.

> Provide access to <K> within DoFn.OnTimerContext 
> -------------------------------------------------
>
>                 Key: BEAM-7155
>                 URL: https://issues.apache.org/jira/browse/BEAM-7155
>             Project: Beam
>          Issue Type: Improvement
>          Components: sdk-java-core
>    Affects Versions: 2.11.0
>            Reporter: Reza ardeshir rokni
>            Priority: P3
>
> org.apache.beam.sdk.transforms.DoFn.OnTimerContext Does not support access to Key. Current workaround:
> @ProcessElement 
> @StateId("dataKey") ValueState<String> key
> { key.write(key)}
>  
> ...
>  
> @OnTimer("processTimer") public void OnTimer(OnTimerContext otc,
> @StateId("dataKey") ValueState<String> key,
> {key.read()}
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)