File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
sql/core/src/main/scala/org/apache/spark/sql Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff 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)
You can’t perform that action at this time.
0 commit comments