saveAsObjectFiles(prefix: String, suffix: String = ""): Unit saveAsTextFiles(prefix: String, suffix: String = ""): Unit
There are two saveAs operators in DStream:
They are output operators that return nothing as they save each RDD in a batch to a storage.
Their full signature is as follows:
|SaveAs operators use foreachRDD output operator.|
The file name is based on mandatory
prefix and batch
time with optional
suffix. It is in the format of
[prefix]-[time in milliseconds].[suffix].