Streaming
The Validator now creates all the resulting rows and keeps them in memory, before they are written to the response stream. This results in a delay of HTTP traffic and potentially the client may see their HTTP request time out.
Please modify the processing so that each result is emitted to a Consumer
, which then writes the row to the response stream. Make sure that writing is properly synchronized.