Read a Parquet file into a stream of Arrow RecordBatches.
This returns a ReadableStream containing RecordBatches in WebAssembly memory. To transfer the
Arrow table to JavaScript memory you have two options:
(Easier): Call RecordBatch.intoIPCStream to construct a buffer that can be parsed
with Arrow JS's tableFromIPC function. (The table will have a single internal record
batch).
(More performant but bleeding edge): Call RecordBatch.intoFFI to construct a data
representation that can be parsed zero-copy from WebAssembly with
arrow-js-ffi using parseRecordBatch.
Read a Parquet file into a stream of Arrow
RecordBatch
es.This returns a ReadableStream containing RecordBatches in WebAssembly memory. To transfer the Arrow table to JavaScript memory you have two options:
RecordBatch.intoIPCStream
to construct a buffer that can be parsed with Arrow JS'stableFromIPC
function. (The table will have a single internal record batch).RecordBatch.intoFFI
to construct a data representation that can be parsed zero-copy from WebAssembly with arrow-js-ffi usingparseRecordBatch
.Example with IPC stream:
Example with
arrow-js-ffi
: