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

The default scale for DataType::Decimal values

The maximum precision for DataType::Decimal values

The maximum scale for DataType::Decimal values

MAX_DECIMAL_FOR_EACH_PRECISION[p] holds the maximum i128 value that can be stored in DataType::Decimal value of precision p

MIN_DECIMAL_FOR_EACH_PRECISION[p] holds the minimum i128 value that can be stored in a DataType::Decimal 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). In little endian machines, types that implement ArrowNativeType can be memcopied to arrow buffers as is.

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.

Trait declaring any type that is serializable to JSON. This includes all primitive types (bool, i32, etc.).

Allows conversion from supported Arrow types to a byte slice.

Type Definitions

A reference-counted reference to a Schema.