apache/beam

ValueState could use an initial/default value

Open

#18.174 aberto em 3 de jun. de 2022

Ver no GitHub
 (5 comments) (0 reactions) (1 assignee)Java (4.097 forks)batch import
P3coregood first issueimprovementjava

Métricas do repositório

Stars
 (7.313 stars)
Métricas de merge de PR
 (Mesclagem média 6d) (243 fundiu PRs em 30d)

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.

Guia do colaborador