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

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

This issue is P2 but has been unassigned without any comment for 60 days so it 
has been labeled "stale-P2". If this issue is still affecting you, we care! 
Please comment and remove the label. Otherwise, in 14 days the issue will be 
moved to P3.

Please see https://beam.apache.org/contribute/jira-priorities/ for a detailed 
explanation of what these priorities mean.


> 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
>              Labels: stale-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