textFile
R2026bClass: matlab.compiler.mlspark.SparkContext
Namespace: matlab.compiler.mlspark
(To be removed) Create an RDD from a text file
matlab.compiler.mlspark.SparkContext.textFile will be removed in a future
release. There is no replacement functionality. For more information, see Version History.
Syntax
rdd = textFile(sc,pathToFile)
rdd = textFile(sc,pathToFile,minPartitions)
Description
creates
an RDD from a text file located in rdd = textFile(sc,pathToFile)pathToFile.
creates
an RDD with minimum partitions specified by rdd = textFile(sc,pathToFile,minPartitions)minPartitions.