跳转至内容

write_ipc_stream()write_feather() 将数据写入接收器并返回给它们的数据(data.frameRecordBatchTable)。此函数将它们包装起来,以便您可以将数据序列化到缓冲区并将该缓冲区作为 R 中的 raw 向量访问。

用法

write_to_raw(x, format = c("stream", "file"))

参数

x

data.frameRecordBatchTable

格式

c("stream", "file") 之一,指示要使用的 IPC 格式

返回值

一个包含 IPC 序列化数据字节的 raw 向量。

示例

# The default format is "stream"
mtcars_raw <- write_to_raw(mtcars)