I want to convert SCollection[String]
to Seq[String]
or List[String]
.
For example, I have a variable called ids.
val ids: SCollection[String] = ~
ids.saveAsTextFile(pathToGCS)
When I save it to Cloud Storage, the contents of the text file are a table of IDs.
id1
id2
id2
I want to keep the contents of a file as Seq or List.
val seqOdIds: Seq[String] = ~