@loaders.gl/tables/arrow
Use Apache Arrow as the common table shape between format loaders, workers, transforms, and writers.
The common data plane
Many inputs. One typed table boundary.
The file format stays specialized at the edges. Arrow is the shared shape in the middle, where loaders, scans, workers, renderers, and writers can exchange columns and batches.
Format-specific input
Apache Arrow
schema · vectors · record batches
Application work
Keep the representation stable while the source, execution engine, or destination changes.
The Arrow module
One binary table shape between every stage.
Use Arrow when a loader, worker, transform, scanner, or writer needs to exchange typed columns without falling back to format-specific row objects.
Ingest
Load Arrow IPC and convert compatible formats into tables
Compute
Keep typed columns, schemas, and batches explicit
Transport
Move buffers across workers with focused helpers
Geospatial
Carry GeoArrow geometry columns and metadata
The @loaders.gl/tables/arrow module provides support for the Apache Arrow and GeoArrow formats.
Detailed guide
Loaders, writers, and table utilities
The reference below covers installation, Arrow and GeoArrow entry points, transport helpers, indexed views, schema utilities, and the underlying Arrow JS API.
Installation
npm install @loaders.gl/core @loaders.gl/tables
See Using with Apache Arrow for practical guidance on how to integrate with the Apache Arrow JS library.
Type-only imports
Use @loaders.gl/tables/arrow/types for types exported by the module and types available in Apache Arrow 17,
including classes exported as types:
import type {Table, Vector, ArrowLoaderOptions} from '@loaders.gl/tables/arrow/types';
Types added in newer Apache Arrow releases, such as Utf8View and BinaryView,
should be imported directly from the installed apache-arrow package.
Type-only imports are erased by TypeScript and add no runtime code or memory cost.
The subpath itself emits an empty module with no runtime dependencies. To construct
class instances, import their runtime values from apache-arrow or @loaders.gl/tables/arrow.
Loaders and Writers
| Loader / Writer | Description |
|---|---|
ArrowLoader | Loads Apache Arrow IPC files and streams as loaders.gl tables. |
GeoArrowLoader | Loads Arrow data and interprets GeoArrow geometry columns. |
ArrowWriter | Writes arrays as Apache Arrow IPC data. |
Additional APIs
@loaders.gl/tables/arrow also provides utilities for working with Apache Arrow JS tables after loading
or when integrating Arrow-backed data sources. Arrow worker transport helpers are available from
@math.gl/core/arrow directly.
| Utility | Description |
|---|---|
IndexedArrowTable | Readonly indexed table and vector views that avoid copying column data |
MappedArrowTable | String-keyed row lookup view layered on top of an indexed Arrow table |
splitArrowBuffers | Rebuild Arrow objects so sliced buffers can be transferred safely |
Arrow Table Transport | Dehydrate/hydrate or serialize/deserialize Arrow tables across workers |
triangulateWKBGeometryColumn | Tessellate a GeoArrow WKB geometry column into index and vertex columns |
Arrow Schema Utilities | Runtime schema validation and column-renaming helpers |
Arrow Variable-Width Conversion | Convert Utf8/Binary vectors and tables between standard and view layouts |
UTF-8 Utilities | Compare and parse Arrow UTF-8 byte ranges without decoding strings |
For the underlying Apache Arrow JS classes, start with the
ArrowJS API Reference.
Attributions
@loaders.gl/tables/arrow was developed with the benefit of extensive technical advice from Paul Taylor @ Graphistry.
Arrow IPC LZ4-frame and Zstandard compression use compress-utils. Async parsing and writing initialize the required codecs automatically. For synchronous compressed parsing, call await ArrowLoader.preload() and use the returned parser-bearing loader. For synchronous encoding, initialize the requested codec with an async encode() first. Application-provided Arrow registry codecs remain supported. No lz4js, fzstd, or zstd-codec injection is required.
