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:07:01 UTC
[jira] [Updated] (BEAM-7155) Provide access to within
DoFn.OnTimerContext
[ https://issues.apache.org/jira/browse/BEAM-7155?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Beam JIRA Bot updated BEAM-7155:
--------------------------------
Priority: P3 (was: 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
> 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)