apache/beam

ValueState could use an initial/default value

Open

#18.174 aperta il 3 giu 2022

Vedi su GitHub
 (5 commenti) (0 reazioni) (1 assegnatario)Java (4097 fork)batch import
P3coregood first issueimprovementjava

Metriche repository

Star
 (7313 star)
Metriche merge PR
 (Merge medio 6g) (243 PR mergiate in 30 g)

Descrizione

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.

Guida contributor