apache/beam

ValueState could use an initial/default value

开放

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

 (5 条评论) (0 个反应) (1 位负责人)Java (4,097 个派生)batch import
P3coregood first issueimprovementjava

仓库指标

星标
 (7,313 个星标)
PR 合并指标
 (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.

贡献者指南