apache/beam

ValueState could use an initial/default value

オープン

#18,174 opened on 2022/06/03

 (5 件のコメント) (0 件のリアクション) (1 人の担当者)Java (4,097 件のフォーク)batch import
P3coregood first issueimprovementjava

Repository metrics

Stars
 (7,313 個のスター)
PR merge metrics
 (PR metrics pending)

説明

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.

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