Arrow module / loader
ArrowLoader
Read Arrow IPC data and keep its typed, columnar structure as it enters your application.
Inside an Arrow table
Tables are columns, batches, and buffers.
The JavaScript API exposes the same columnar structure that makes Arrow efficient: a schema describes fields, vectors hold typed values, and buffers carry the bytes.
Schema
Table
Vector
Data buffers
Data type
The application can stay at the table boundary; these lower-level objects matter when inspecting schemas, building zero-copy views, or implementing an adapter.
What ArrowLoader preserves
Bring the columns in without turning them into rows.
ArrowLoader keeps IPC data in its typed table form by default, while allowing applications to choose a different loaders.gl table shape when an integration needs it.
Input
Arrow IPC files, streams, and compatible responses
Default
Native Apache Arrow Table
Alternatives
Columnar, array-row, or object-row table wrappers
Streaming
Incremental Arrow batches with optional debounce
The ArrowLoader parses the Apache Arrow columnar table format.
Detailed guide
ArrowLoader usage and options
The reference below covers loading, returned shapes, batch behavior, and the options that control table conversion.
Usage
import {ArrowLoader} from '@loaders.gl/tables/arrow';
import {load} from '@loaders.gl/core';
const data = await load(url, ArrowLoader, options);
Shapes
ArrowLoader returns native Apache Arrow Table objects by default. Set arrow.shape to select another table representation.
| Shape | Output |
|---|---|
arrow | Apache Arrow Table or streamed RecordBatch objects |
columnar-table | loaders.gl columnar table |
array-row-table | loaders.gl row table with arrays |
object-row-table | loaders.gl row table with objects |
Options
| Option | Type | Default | Description |
|---|---|---|---|
arrow.shape | 'arrow' | 'columnar-table' | 'array-row-table' | 'object-row-table' | 'arrow' | Selects the output shape. |
core.batchMaxRowsPerSecond | number | 0 | Paces delivery by row count while preserving IPC batch boundaries. |
Worker parsing
Atomic parsing and parseInBatches() support workers with core.worker: true. Each batch session
retains one Arrow IPC reader, requests input on demand, and waits for the consumer before advancing
past an output batch. Batched APIs yield native Apache Arrow RecordBatch objects by default. Atomic parsing converts
to the requested output shape on the caller after hydrating the transferred Arrow data.
Workers return owned Arrow column buffers, preserving dictionaries and extension metadata without transferring buffers still referenced by the reader. Decoded JSON rows and GeoJSON features are never structured-cloned across the worker boundary. Small table and protocol descriptors accompany the buffers. Input chunks can still be large; backpressure does not bound an individual input chunk.
Pass signal to cancel a queued or running job. Breaking from iteration closes the input and releases
the worker. Iterator cleanup is best effort and does not delay cancellation. Transferred inputs remain
detached after cancellation.
Browser workers use the published asset fallback; set arrow.workerUrl to self-host the matching
worker bundle. Node worker threads require core._nodeWorkers: true and use the packaged CommonJS
bundle. Set core.workerInBatches: false to keep batches on the caller. Custom worker URLs require
core.workerInBatches: true to declare compatibility with the batch protocol.