apache/beam

ValueState could use an initial/default value

Ouverte

#18 174 ouverte le 3 juin 2022

 (5 commentaires) (0 réaction) (1 personne assignée)Java (4 097 forks)batch import
P3coregood first issueimprovementjava

Métriques du dépôt

Stars
 (7 313 étoiles)
Métriques de merge PR
 (Métriques PR en attente)

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