apache/beam

ValueState could use an initial/default value

Offen

#18.174 geöffnet am 03.06.2022

 (5 Kommentare) (0 Reaktionen) (1 zugewiesene Person)Java (4.097 Forks)batch import
P3coregood first issueimprovementjava

Repository-Metriken

Stars
 (7.313 Sterne)
PR-Merge-Metriken
 (PR-Metriken ausstehend)

Beschreibung

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.

Contributor Guide