apache/beam

ValueState could use an initial/default value

Open

#18 174 ouverte le 3 juin 2022

Voir sur GitHub
 (5 commentaires) (0 réactions) (1 assigné)Java (4 097 forks)batch import
P3coregood first issueimprovementjava

Métriques du dépôt

Stars
 (7 313 stars)
Métriques de merge PR
 (Merge moyen 6j) (243 PRs mergées en 30 j)

Description

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.

Guide contributeur