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 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
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.
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.
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.
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.
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.