apache/beam

ValueState could use an initial/default value

Open

#18,174 opened on 2022年6月3日

GitHub で見る
 (5 comments) (0 reactions) (1 assignee)Java (4,097 forks)batch import
P3coregood first issueimprovementjava

Repository metrics

Stars
 (7,313 stars)
PR merge metrics
 (平均マージ 6d) (30d で 243 merged PRs)

説明

In writing example state code with ValueState there is almost always a use of firstNonNull(state.read(), defaultValue). It would be nice to bake this into the declaration.

Imported from Jira BEAM-1335. Original Jira may contain additional context. Reported by: kenn.

コントリビューターガイド