Module arrow::datatypes

source ·
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

A boolean datatype
A 32-bit date type representing the elapsed time since UNIX epoch in days(32 bits).
A 64-bit date type representing the elapsed time since UNIX epoch in days(32 bits).
The decimal type for a Decimal128Array
The decimal type for a Decimal256Array
An elapsed time type in microseconds.
An elapsed time type in milliseconds.
An elapsed time type in nanoseconds.
An elapsed time type in seconds.
Describes a single column in a Schema.
A 16-bit floating point number type.
A 32-bit floating point number type.
A 64-bit floating point number type.
A signed 8-bit integer type.
A signed 16-bit integer type.
A signed 32-bit integer type.
A signed 64-bit integer type.
A “calendar” interval type in days and milliseconds.
A “calendar” interval type in months, days, and nanoseconds.
A “calendar” interval type in months.
Describes the meta-data of an ordered sequence of relative types.
A 32-bit time type representing the elapsed time since midnight in milliseconds.
A 32-bit time type representing the elapsed time since midnight in seconds.
A 64-bit time type representing the elapsed time since midnight in microseconds.
A 64-bit time type representing the elapsed time since midnight in nanoseconds.
A timestamp microsecond type with an optional timezone.
A timestamp millisecond type with an optional timezone.
A timestamp nanosecond type with an optional timezone.
A timestamp second type with an optional timezone.
An unsigned 8-bit integer type.
An unsigned 16-bit integer type.
An unsigned 32-bit integer type.
An unsigned 64-bit integer type.
A signed 256-bit integer

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 maximum precision for DataType::Decimal128 values
The maximum scale for DataType::Decimal128 values
The maximum precision for DataType::Decimal256 values
The maximum scale for DataType::Decimal256 values
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
A subtype of primitive type that represents numeric float values
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 for ArrowNativeType that adds checked and unchecked arithmetic operations, and totally ordered comparison operations
A subtype of primitive type that represents numeric values.
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 variable-size byte array types
A trait over the decimal types, used by PrimitiveArray to provide a generic implementation across the various decimal types
Allows conversion from supported Arrow types to a byte slice.

Functions

Validates that the specified i256 of 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

An arrow binary array with i32 offsets
An arrow binary array with i64 offsets
An arrow utf8 array with i64 offsets
A reference-counted reference to a Schema.
An arrow utf8 array with i32 offsets