polars_arrow

Module scalar

Source
Expand description

contains the Scalar trait object representing individual items of Arrays, as well as concrete implementations such as BooleanScalar.

Structs§

BinaryScalar
The Scalar implementation of binary (Option<Vec<u8>>).
BinaryViewScalar
The implementation of Scalar for utf8, semantically equivalent to Option<String>.
BooleanScalar
The Scalar implementation of a boolean.
DictionaryScalar
The DictionaryArray equivalent of Array for Scalar.
FixedSizeBinaryScalar
The Scalar implementation of fixed size binary ([Option<Box<[u8]>>]).
FixedSizeListScalar
The scalar equivalent of FixedSizeListArray. Like FixedSizeListArray, this struct holds a dynamically-typed Array. The only difference is that this has only one element.
ListScalar
The scalar equivalent of ListArray. Like ListArray, this struct holds a dynamically-typed Array. The only difference is that this has only one element.
MapScalar
The scalar equivalent of MapArray. Like MapArray, this struct holds a dynamically-typed Array. The only difference is that this has only one element.
NullScalar
The representation of a single entry of a crate::array::NullArray.
PrimitiveScalar
The implementation of Scalar for primitive, semantically equivalent to Option<T> with ArrowDataType.
StructScalar
A single entry of a crate::array::StructArray.
UnionScalar
A single entry of a crate::array::UnionArray.
Utf8Scalar
The implementation of Scalar for utf8, semantically equivalent to Option<String>.

Traits§

Scalar
Trait object declaring an optional value with a ArrowDataType. This strait is often used in APIs that accept multiple scalar types.

Functions§

new_scalar
creates a new Scalar from an Array.