Module cast
Expand description
Defines different casting operators such as cast
or [primitive_to_binary
].
Modules§
Structs§
- options defining how Cast kernels behave
Traits§
Functions§
- Conversion of binary
- Cast [
BinaryArray
] to [DictionaryArray
], also known as packing. - Conversion of binary
- Conversion of binary
- Conversion to utf8
- binview_
to_ decimal dtype-decimal
- Casts the [
BooleanArray
] to a [BinaryArray
], casting trues to"1"
and falses to"0"
- Casts the [
BooleanArray
] to a [PrimitiveArray
]. - Cast
array
to the provided data type and return a new [Array
] with typeto_type
, if possible. - Conversion of dates
- Conversion of dates
- Returns a [
PrimitiveArray<i128>
] with the casted values. Values areNone
on overflow - Returns a [
PrimitiveArray<i128>
] with the casted values. Values areNone
on overflow - Returns a [
PrimitiveArray<i128>
] with the casted values. Values areNone
on overflow - Casts f16 into f32
- Conversion of
FixedSizeBinary
toBinary
. - Returns a [
PrimitiveArray<i128>
] with the casted values. Values areNone
on overflow - Conversion of
Int32
toTime32(TimeUnit::Millisecond)
- Conversion of
Int32
toTime32(TimeUnit::Second)
- Conversion of
Int64
toTime32(TimeUnit::Nanosecond)
- Conversion of
Int64
toTime32(TimeUnit::Microsecond)
- Returns a [
PrimitiveArray<i128>
] with the casted values. Values areNone
on overflow - Cast [
PrimitiveArray
] as a [PrimitiveArray
] Same asnumber as to_number_type
in rust - Safety
- Returns a [
BooleanArray
] where every element is different from zero. Validity is preserved. - Cast [
PrimitiveArray
] to [DictionaryArray
]. Also known as packing. - Cast [
PrimitiveArray
] to a [PrimitiveArray
] of another physical type via numeric conversion. - Cast [
PrimitiveArray
] to a [PrimitiveArray
] of the same physical type. This is O(1). - Conversion of time
- Conversion of times
- Conversion of times
- Conversion of time
- Conversion of times
- Conversion of times
- Conversion of timestamp
- Conversion of timestamp
- Conversion of timestamp
- Conversion of utf8
- Conversion to binary
- Cast [
Utf8Array
] to [DictionaryArray
], also known as packing. - Conversion of utf8