Skip to main content

Module schema

Module schema 

Source
Expand description

§Schema Module - Arrow’s schema type for cross-FFI compatibility

Contains the Schema type for Arrow FFI compatibility.

§Overview

  • Stores a list of Field definitions and optional metadata.
  • Used when constructing RecordBatch for Arrow C-FFI.
  • In Minarrow, FieldArray is preferred for typical usage since it holds the Field directly.

§Design

  • Exists only in the FFI module to support external Arrow interoperability.
  • The Table structure embeds field definitions directly to avoid additional indirection.

§Usage

  • Construct directly with Schema::new(fields, metadata).
  • Or convert from Vec<Field> using Schema::from.

Structs§

Schema
Schema