Module arrow_array::array

source ·
Expand description

The concrete array definitions

Structs

Array of bools
A dictionary array where each element is a single value indexed by an integer key. This is mostly used to represent strings or a limited set of primitive types as integers, for example when doing NLP analysis or representing chromosomes by name.
An array where each element is a fixed-size sequence of bytes.
A list array where each element is a fixed-size sequence of values with the same type whose maximum length is represented by a i32.
Generic struct for variable-size byte arrays
Generic struct for a variable-size list array.
A nested array type where each record is a key-value map. Keys should always be non-null, but values can be null.
This struct is used as an adapter when creating PrimitiveArray from an iterator. FromIterator for PrimitiveArray takes an iterator where the elements can be into this struct. So once implementing From or Into trait for a type, an iterator of the type can be collected to PrimitiveArray.
An Array where all elements are nulls
Array whose elements are of primitive types.
A run-end encoding (REE) is a variation of run-length encoding (RLE).
A nested array type where each child (called field) is represented by a separate array.
A strongly-typed wrapper around a DictionaryArray that implements ArrayAccessor allowing fast access to its elements
A strongly-typed wrapper around a RunArray that implements ArrayAccessor and IntoIterator allowing fast access to its elements
An Array that can represent slots of varying types.

Traits

Trait for dealing with different types of array at runtime when the type of the array is not known in advance.
A generic trait for accessing the values of an Array
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.
trait declaring an offset size, relevant for i32 vs i64 array types.

Functions

Constructs an array using the input data. Returns a reference-counted Array instance.
Creates a new empty array
Creates a new array of data_type of length length filled entirely of NULL values

Type Definitions

A reference-counted reference to a generic Array.
An array where each element contains 0 or more bytes. The byte length of each element is represented by an i32.
A primitive array where each element is of 32-bit value representing the elapsed time since UNIX epoch in days.“
A primitive array where each element is a 64-bit value representing the elapsed time since the UNIX epoch in milliseconds.
An array where each element is a 128-bits decimal with precision in [1, 38] and scale less or equal to 38.
An array where each element is a 256-bits decimal with precision in [1, 76] and scale less or equal to 76.
An array where each element is an elapsed time type in microseconds.
An array where each element is an elapsed time type in milliseconds.
An array where each element is an elapsed time type in nanoseconds.
An array where each element is an elapsed time type in seconds.
Example: Using collect
Example: Using collect
Example: Using collect
See BinaryArray and LargeBinaryArray for storing binary data.
Generic struct for [Large]StringArray
Example: Using collect
A dictionary array where each element is a single value indexed by an integer key.
Example: Using collect
A dictionary array where each element is a single value indexed by an integer key.
A RunArray array where run ends are stored using i16 data type.
Example: Using collect
A dictionary array where each element is a single value indexed by an integer key.
A RunArray array where run ends are stored using i32 data type.
Example: Using collect
A dictionary array where each element is a single value indexed by an integer key.
A RunArray array where run ends are stored using i64 data type.
An array where each element is a “calendar” interval days and milliseconds.
An array where each element is a “calendar” interval in months, days, and nanoseconds.
An array where each element is a “calendar” interval in months.
An array where each element contains 0 or more bytes. The byte length of each element is represented by an i64.
A list array where each element is a variable-sized sequence of values with the same type whose memory offsets between elements are represented by a i64.
An array where each element is a variable-sized sequence of bytes representing a string whose maximum length (in bytes) is represented by a i64.
A list array where each element is a variable-sized sequence of values with the same type whose memory offsets between elements are represented by a i32.
An array where each element is a variable-sized sequence of bytes representing a string whose maximum length (in bytes) is represented by a i32.
An array where each element is of 32-bit type representing time elapsed in milliseconds since midnight.
An array where each element is of 32-bit type representing time elapsed in seconds since midnight.
An array where each element is of 64-bit type representing time elapsed in microseconds since midnight.
An array where each element is of 64-bit type representing time elapsed in nanoseconds since midnight.
A primitive array where each element is of type TimestampMicrosecondType. See examples for TimestampSecondArray.
A primitive array where each element is of type TimestampMillisecondType. See examples for TimestampSecondArray.
A primitive array where each element is of type TimestampNanosecondType. See examples for TimestampSecondArray.
A primitive array where each element is of type TimestampSecondType. See also Timestamp.
Example: Using collect
A dictionary array where each element is a single value indexed by an integer key.
Example: Using collect
A dictionary array where each element is a single value indexed by an integer key.
Example: Using collect
A dictionary array where each element is a single value indexed by an integer key.
Example: Using collect
A dictionary array where each element is a single value indexed by an integer key.