Skip to content

Commit f82a2f4

Browse files
committed
Move the comments above for json.
1 parent a97a0a8 commit f82a2f4

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

sql/core/src/main/scala/org/apache/spark/sql/DataFrameWriter.scala

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -453,6 +453,12 @@ final class DataFrameWriter private[sql](df: DataFrame) {
453453
* format("json").save(path)
454454
* }}}
455455
*
456+
* You can set the following JSON-specific options for writing JSON files:
457+
* <li>`compression` or `codec` (default `null`): compression codec to use when saving to file.
458+
* This should be the fully qualified name of a class implementing
459+
* [[org.apache.hadoop.io.compress.CompressionCodec]] or one of the known case-insensitive
460+
* shorten names(`bzip2`, `gzip`, `lz4`, and `snappy`). </li>
461+
*
456462
* @since 1.4.0
457463
*/
458464
def json(path: String): Unit = format("json").save(path)
@@ -464,12 +470,6 @@ final class DataFrameWriter private[sql](df: DataFrame) {
464470
* format("parquet").save(path)
465471
* }}}
466472
*
467-
* You can set the following JSON-specific options for writing JSON files:
468-
* <li>`compression` or `codec` (default `null`): compression codec to use when saving to file.
469-
* This should be the fully qualified name of a class implementing
470-
* [[org.apache.hadoop.io.compress.CompressionCodec]] or one of the known case-insensitive
471-
* shorten names(`bzip2`, `gzip`, `lz4`, and `snappy`). </li>
472-
*
473473
* @since 1.4.0
474474
*/
475475
def parquet(path: String): Unit = format("parquet").save(path)

0 commit comments

Comments
 (0)