arrow (version 0.16.0.2)

write_arrow: Write Arrow formatted data

Description

Write Arrow formatted data

Usage

write_arrow(x, sink, ...)

Arguments

x

an arrow::Table, an arrow::RecordBatch or a data.frame

sink

where to serialize to

  • A arrow::RecordBatchWriter: the $write() of x is used. The stream is left open. This uses the streaming format or the binary file format depending on the type of the writer.

  • A string file path: x is serialized with a arrow::RecordBatchFileWriter, i.e. using the binary file format.

  • A raw vector: typically of length zero (its data is ignored, and only used for dispatch). x is serialized using the streaming format, i.e. using the arrow::RecordBatchStreamWriter

...

extra parameters, currently ignored

write_arrow is a convenience function, the classes arrow::RecordBatchFileWriter and arrow::RecordBatchStreamWriter can be used for more flexibility.

Value

the input x invisibly.