@@ -215,9 +215,10 @@ class JavaSparkContext(val sc: SparkContext) extends JavaSparkContextVarargsWork
215215 new JavaPairRDD (sc.wholeTextFiles(path, minPartitions))
216216
217217 /**
218- * Read a directory of binary files from HDFS, a local file system (available on all nodes), or any
219- * Hadoop-supported file system URI as a byte array. Each file is read as a single record and returned in a
220- * key-value pair, where the key is the path of each file, the value is the content of each file.
218+ * Read a directory of binary files from HDFS, a local file system (available on all nodes),
219+ * or any Hadoop-supported file system URI as a byte array. Each file is read as a single
220+ * record and returned in a key-value pair, where the key is the path of each file,
221+ * the value is the content of each file.
221222 *
222223 * <p> For example, if you have the following files:
223224 * {{{
@@ -227,7 +228,8 @@ class JavaSparkContext(val sc: SparkContext) extends JavaSparkContextVarargsWork
227228 * hdfs://a-hdfs-path/part-nnnnn
228229 * }}}
229230 *
230- * Do `JavaPairRDD<String, byte[]> rdd = sparkContext.dataStreamFiles("hdfs://a-hdfs-path")`,
231+ * Do
232+ * `JavaPairRDD<String, byte[]> rdd = sparkContext.dataStreamFiles("hdfs://a-hdfs-path")`,
231233 *
232234 * <p> then `rdd` contains
233235 * {{{
@@ -241,13 +243,14 @@ class JavaSparkContext(val sc: SparkContext) extends JavaSparkContextVarargsWork
241243 *
242244 * @param minPartitions A suggestion value of the minimal splitting number for input data.
243245 */
244- def dataStreamFiles (path : String , minPartitions : Int = defaultMinPartitions): JavaPairRDD [ String , DataInputStream ] =
245- new JavaPairRDD (sc.dataStreamFiles(path,minPartitions))
246+ def dataStreamFiles (path : String , minPartitions : Int = defaultMinPartitions):
247+ JavaPairRDD [ String , DataInputStream ] = new JavaPairRDD (sc.dataStreamFiles(path,minPartitions))
246248
247249 /**
248- * Read a directory of files as DataInputStreams from HDFS, a local file system (available on all nodes), or any
249- * Hadoop-supported file system URI as a byte array. Each file is read as a single record and returned in a
250- * key-value pair, where the key is the path of each file, the value is the content of each file.
250+ * Read a directory of files as DataInputStream from HDFS,
251+ * a local file system (available on all nodes), or any Hadoop-supported file system URI
252+ * as a byte array. Each file is read as a single record and returned in a
253+ * key-value pair, where the key is the path of each file, the value is the content of each.
251254 *
252255 * <p> For example, if you have the following files:
253256 * {{{
@@ -257,7 +260,8 @@ class JavaSparkContext(val sc: SparkContext) extends JavaSparkContextVarargsWork
257260 * hdfs://a-hdfs-path/part-nnnnn
258261 * }}}
259262 *
260- * Do `JavaPairRDD<String, DataInputStream> rdd = sparkContext.binaryFiles("hdfs://a-hdfs-path")`,
263+ * Do
264+ * `JavaPairRDD<String,DataInputStream> rdd = sparkContext.binaryFiles("hdfs://a-hdfs-path")`,
261265 *
262266 * <p> then `rdd` contains
263267 * {{{
@@ -271,8 +275,8 @@ class JavaSparkContext(val sc: SparkContext) extends JavaSparkContextVarargsWork
271275 *
272276 * @param minPartitions A suggestion value of the minimal splitting number for input data.
273277 */
274- def binaryFiles (path : String , minPartitions : Int = defaultMinPartitions): JavaPairRDD [ String , Array [ Byte ]] =
275- new JavaPairRDD (sc.binaryFiles(path,minPartitions))
278+ def binaryFiles (path : String , minPartitions : Int = defaultMinPartitions):
279+ JavaPairRDD [ String , Array [ Byte ]] = new JavaPairRDD (sc.binaryFiles(path,minPartitions))
276280
277281 /**
278282 * Read a directory of text files from HDFS, a local file system (available on all nodes), or any
0 commit comments