Skip to content

Commit

Permalink
added mmap argument to all methods of feather_table_reader
Browse files Browse the repository at this point in the history
  • Loading branch information
romainfrancois committed Nov 14, 2018
1 parent ab357ae commit e92552f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions r/R/feather.R
Original file line number Diff line number Diff line change
Expand Up @@ -117,12 +117,12 @@ write_feather_RecordBatch <- function(data, stream) {
#' @param ... extra parameters
#'
#' @export
feather_table_reader <- function(file, ...){
feather_table_reader <- function(file, mmap = TRUE, ...){
UseMethod("feather_table_reader")
}

#' @export
feather_table_reader.default <- function(file, ...) {
feather_table_reader.default <- function(file, mmap = TRUE, ...) {
stop("unsupported")
}

Expand All @@ -138,12 +138,12 @@ feather_table_reader.fs_path <- function(file, mmap = TRUE, ...) {
}

#' @export
`feather_table_reader.arrow::io::RandomAccessFile` <- function(file, ...){
`feather_table_reader.arrow::io::RandomAccessFile` <- function(file, mmap = TRUE, ...){
unique_ptr(`arrow::ipc::feather::TableReader`, ipc___feather___TableReader__Open(file))
}

#' @export
`feather_table_reader.arrow::ipc::feather::TableReader` <- function(file){
`feather_table_reader.arrow::ipc::feather::TableReader` <- function(file, mmap = TRUE, ...){
file
}

Expand Down
6 changes: 3 additions & 3 deletions r/man/feather_table_reader.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit e92552f

Please sign in to comment.