apache/beam

ValueState could use an initial/default value

Aberta

#18.174 aberto em 3 de jun. de 2022

 (5 comentários) (0 reação) (1 responsável)Java (4.097 forks)batch import
P3coregood first issueimprovementjava

Métricas do repositório

Stars
 (7.313 estrelas)
Métricas de merge de PR
 (Métricas PR pendentes)

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