apache/beam

ValueState could use an initial/default value

Open

#18,174 创建于 2022年6月3日

在 GitHub 查看
 (5 评论) (0 反应) (1 负责人)Java (4,097 fork)batch import
P3coregood first issueimprovementjava

仓库指标

Star
 (7,313 star)
PR 合并指标
 (平均合并 6天) (30 天内合并 243 个 PR)

描述

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.

贡献者指南