val foreachWriter = new ForeachWriter[String] { ... }
streamingQuery.
writeStream.
foreach(foreachWriter).
start
ForeachWriter
ForeachWriter
is the contract for a foreach writer that is a streaming format that controls streaming writes.
Note
|
ForeachWriter is set using foreach operator.
|