Re: Counting streaks in stateful structured streaming
From this paragraph it appears the answer to your query is YES.
page 334 Spark the definitive guide states :
"Stream processing is the act of continuously incorporating new data to compute a result. In stream processing,
the input data is unbounded and has no predetermined beginning or end. It simply forms a series of events that arrive at the stream processing system (e.g. credit card transactions, clicks on a website , or sensor readings ..)
User applications can then compute various queries over this stream of events (e..g. tracking a running count of each type of event or aggregating them into in hourly windows). The application will output multiple versions of the results as it runs or perhaps keep it up to date in an external "sink" system such as a key-value store"