apache / apache/beam

ValueState could use an initial/default value

Open
#18,174 5 comments 0 reactions 1 assignee Claimed by @Ri1a View on GitHub
core good first issue improvement java P3
Dominant language
Java
Stars
8.7k
Forks
4.7k
Avg merge
1d 20h
Merged PRs (30d)
196

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](https://issues.apache.org/jira/browse/BEAM-1335). Original Jira may contain additional context.
Reported by: kenn.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.