Uint8Array containing Parquet data
Optional
options: ReaderOptionsOptions for reading Parquet data. Optional keys include:
batchSize
: The number of rows in each batch. If not provided, the upstream parquet
default is 1024.rowGroups
: Only read data from the provided row group indexes.limit
: Provide a limit to the number of rows to be read.offset
: Provide an offset to skip over the given number of rows.columns
: The column names from the file to read.
Read a Parquet file into Arrow data.
This returns an Arrow table in WebAssembly memory. To transfer the Arrow table to JavaScript memory you have two options:
Table.intoIPCStream
to construct a buffer that can be parsed with Arrow JS'stableFromIPC
function.Table.intoFFI
to construct a data representation that can be parsed zero-copy from WebAssembly with arrow-js-ffi usingparseTable
.Example with IPC stream:
Example with
arrow-js-ffi
: