apache/beam

ValueState could use an initial/default value

Open

#18.174 geöffnet am 3. Juni 2022

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

Repository-Metriken

Stars
 (7.313 Stars)
PR-Merge-Metriken
 (Durchschn. Merge 6T) (243 gemergte PRs in 30 T)

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