跳转至内容

Apache Arrow 定义了两种用于序列化数据以进行进程间通信 (IPC) 的格式:一种是“流”格式,另一种是“文件”格式,称为 Feather。read_ipc_stream()read_feather() 分别读取这两种格式。

用法

read_ipc_stream(file, as_data_frame = TRUE, ...)

参数

file

字符文件名或 URI,连接,raw 向量,Arrow 输入流或带有路径的 FileSystem (SubTreeFileSystem)。如果是文件名或 URI,则会在完成后打开并关闭 Arrow InputStream。如果提供了输入流,它将保持打开状态。

as_data_frame

该函数应该返回 tibble(默认)还是 Arrow Table

...

传递给 read_feather() 的额外参数。

返回值

如果 as_data_frameTRUE(默认值),则返回 tibble,否则返回 Arrow Table

另请参阅

write_feather() 用于写入 IPC 文件。RecordBatchReader 用于更底层的接口。