thisisnic commented on code in PR #35055:
URL: https://github.com/apache/arrow/pull/35055#discussion_r1230759929
##########
r/R/dataset-format.R:
##########
@@ -113,6 +115,45 @@ ParquetFileFormat$create <- function(...,
#' @export
IpcFileFormat <- R6Class("IpcFileFormat", inherit = FileFormat)
+#' JSON dataset file format
+#'
+#' @description
+#' A `JsonFileFormat` is a [FileFormat] subclass which holds information about
how to
+#' read and parse the files included in a JSON `Dataset`.
+#'
+#' @section Factory:
+#' `JsonFileFormat$create()` can take options in the form of lists passed
through as `parse_options`,
+#' or `read_options` parameters.
+#'
+#' Available `read_options` parameters:
+#' * `use_threads`: Whether to use the global CPU thread pool. Default
`TRUE`. If `FALSE`, JSON input must end with an
+#' empty line.
+#' * `block_size`: Block size we request from the IO layer; also determines
size of chunks when `use_threads`
+#' is `TRUE`.
Review Comment:
I have no idea; I copied from
https://github.com/apache/arrow/blob/95972cca1f65179b63a9fe5262d1092547e3d137/r/R/csv.R#L378-L384
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]