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.

貢獻者指南