Skip to main content

Binary columnar data

Apache Software Foundation

Apache Arrow

Apache Arrow keeps columns typed and contiguous as they move between decoders, scanners, workers, analytical code, and writers. loaders.gl provides the format adapters and common table contracts around that physical model.

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.

Keep the representation stable while the source, execution engine, or destination changes.

Why Arrow is the common shape

Decode once. Reuse the columns.

Arrow is useful when data crosses more than one boundary. The same typed buffers can feed a table view, a scan predicate, a worker, a geometry adapter, or a writer without first becoming a large object-row copy.

Physical model

Typed, contiguous buffers with explicit validity and offsets.

Application shape

Tables and geometry tables shared across related formats.

Pipeline fit

Works with batches, range reads, workers, transforms, and writers.

Format boundary

Arrow IPC and GeoArrow metadata remain standards-shaped.

Detailed guide

Arrow module details

The reference below lists the loaders, writers, IPC behavior, metadata, and related GeoArrow paths exposed by the module.

CharacteristicValue
File FormatApache Arrow
Related FormatGeoArrow
Data FormatTables, Geometry Tables
File Extensions.arrow, .feather
MIME Typesapplication/vnd.apache.arrow.file, application/vnd.apache.arrow.stream
File TypeBinary
Loader APIsload, parse, parseSync, parseInBatches
Loader Worker Thread✅ Yes
Loader Streaming✅ Yes
Writer APIsencode, encodeSync

Loaders and Writers​

IPC​

ArrowLoader reads Apache Arrow IPC file and stream data. IPC streams can be parsed in batches with parseInBatches.

Feather V2 is the Arrow IPC file format with a .feather extension. Feather V1 is a different legacy format and is not supported.

Format capabilities​

CapabilityArrow IPC streamArrow IPC fileFeather V2Feather V1
Decode complete table✅✅✅✕
Decode record batches✅✅✅✕
Decode in a worker✅✅✅✕
Decode uncompressed data with Apache Arrow JS 17+✅✅✅✕
Decode LZ4-frame buffer compression with Apache Arrow JS 21.2+✅✅✅✕
Decode Zstandard buffer compression with Apache Arrow JS 21.2+✅✅✅✕
Encode with ArrowWriter✅✅✅✕
Encode LZ4-frame buffer compression with Apache Arrow JS 21.2+✅✅✅✕
Encode Zstandard buffer compression with Apache Arrow JS 21.2+✅¹✅¹✅¹✕

¹ Zstandard encoding uses asynchronous encode() so its codec can be initialized. LZ4 and uncompressed output support both encode() and encodeSync().

Embedded compression​

Arrow IPC defines exactly two embedded record-batch buffer compression codecs. ArrowLoader supports both:

CodecDecodeEncodeNotes
LZ4 Frame (LZ4_FRAME)✅✅Each compressed buffer contains one LZ4 frame.
Zstandard (ZSTD)✅✅¹Standard Zstandard frame compression.

Individual buffers that a Feather writer leaves uncompressed because compression would not reduce their size are also supported. The codecs are registered only when the installed Apache Arrow JS runtime exposes IPC compression support (version 21.2.0 or later). Apache Arrow JS 17 through 21.1 remain supported for uncompressed IPC data and report a targeted version requirement when a compressed record batch is encountered.

GeoArrow​

GeoArrow data is valid Apache Arrow data with geospatial extension metadata and geometry column layouts. Use GeoArrowLoader when you want loaders.gl to interpret GeoArrow geometry columns.