Skip to content

Commit

Permalink
Write binding for cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
thisisnic committed Dec 16, 2021
1 parent f473cb9 commit b9ad11f
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
4 changes: 4 additions & 0 deletions r/R/arrowExports.R

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

8 changes: 8 additions & 0 deletions r/src/csv.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -202,4 +202,12 @@ void csv___WriteCSV__RecordBatch(
StopIfNotOk(arrow::csv::WriteCSV(*record_batch, *write_options, stream.get()));
}

// [[arrow::export]]
void csv___WriteCSV__RecordBatchReader(
const std::shared_ptr<arrow::RecordBatchReader>& reader,
const std::shared_ptr<arrow::csv::WriteOptions>& write_options,
const std::shared_ptr<arrow::io::OutputStream>& stream) {
StopIfNotOk(arrow::csv::WriteCSV(reader, *write_options, stream.get()));
}

#endif

0 comments on commit b9ad11f

Please sign in to comment.