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

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

This issue was marked "stale-assigned" and has not received a public comment in 
7 days. It is now automatically unassigned. If you are still working on it, you 
can assign it to yourself again. Please also give an update about the status of 
the work.

> 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: P2
>
> 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)

Reply via email to