Expand description

Defines the logical data types of Arrow arrays.

The most important things you might be looking for are:

  • Schema to describe a schema.
  • Field to describe one field within a schema.
  • DataType to describe the type of a field.

Structs

Enums

The set of datatypes that are supported by this implementation of Apache Arrow.
YEAR_MONTH, DAY_TIME, MONTH_DAY_NANO interval in SQL style.
An absolute length of time in seconds, milliseconds, microseconds or nanoseconds.

Constants

MAX_DECIMAL_FOR_EACH_PRECISION[p] holds the maximum i128 value that can be stored in arrow_schema::DataType::Decimal128 value of precision p
MIN_DECIMAL_FOR_EACH_PRECISION[p] holds the minimum i128 value that can be stored in a arrow_schema::DataType::Decimal128 value of precision p

Traits

A subtype of primitive type that represents legal dictionary keys. See https://arrow.apache.org/docs/format/Columnar.html
Trait expressing a Rust type that has the same in-memory representation as Arrow. This includes i16, f32, but excludes bool (which in arrow is represented in bits).
Trait bridging the dynamic-typed nature of Arrow (via DataType) with the static-typed nature of rust types (ArrowNativeType) for all types that implement ArrowNativeType.
A subtype of primitive type that represents temporal values.
A timestamp type allows us to create array builders that take a timestamp.
A trait over the decimal types, used by DecimalArray to provide a generic implementation across the various decimal types
Trait representing the in-memory layout of a decimal type
Allows conversion from supported Arrow types to a byte slice.

Functions

Validates that the specified byte_array of little-endian format value can be properly interpreted as a Decimal256 number with precision precision
Validates that the specified i128 value can be properly interpreted as a Decimal number with precision precision

Type Definitions

A reference-counted reference to a Schema.