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.

貢獻者指南