Loading an RDD from a file
Create and return an RDD from the content of the named file in the project.
- Scala syntax
-
loadRDDOptionFromFile(pc: ProjectContext, filename: String): Option[RDD[String]] // Get the resulting Option[RDD] val odf1 = ProjectUtil.loadRDDOptionFromFile if (odf.isDefined) { val df1 = odf1.get // do something with the DataFrame }
- Python syntax
-
load_rdd_from_file(pc, filename): # Call can return None
- R syntax
- Not supported.