Crate vortex_scalar

Crate vortex_scalar 

Source
Expand description

Scalar values and types for the Vortex system.

This crate provides scalar types and values that can be used to represent individual data elements in the Vortex array system. Scalars are composed of a logical data type (DType) and a value (ScalarValue).

Macros§

match_each_decimal_value
Matches over each decimal value variant, binding the inner value to a variable.
match_each_decimal_value_type
Macro to match over each decimal value type, binding the corresponding native type (from DecimalValueType)

Structs§

BinaryScalar
A scalar value representing binary data.
BoolScalar
A scalar value representing a boolean.
DecimalScalar
A scalar value representing a decimal number with fixed precision and scale.
ExtScalar
A scalar value representing an extension type.
ListScalar
A scalar value representing a list or fixed-size list (array) of elements.
PrimitiveScalar
A scalar value representing a primitive type.
Scalar
A single logical item, composed of both a ScalarValue and a logical DType.
ScalarValue
Represents the internal data of a scalar value. Must be interpreted by wrapping up with a vortex_dtype::DType to make a super::Scalar.
StructScalar
A scalar value representing a struct with named fields.
Utf8Scalar
A scalar value representing a UTF-8 encoded string.
i256
Signed 256-bit integer type.

Enums§

DecimalValue
A decimal value that can be stored in various integer widths.
DecimalValueType
Type of the decimal values.
NumericOperator
Binary element-wise operations on two arrays or two scalars.
PValue
A primitive value that can represent any primitive type supported by Vortex.

Traits§

BigCast
Checked numeric casts up to and including i256 support.
FromPrimitiveOrF16
A trait for types that can be created from primitive values, including f16.
NativeDecimalType
Type of decimal scalar values.
ScalarType
A trait for types that can be used as scalar values.
ToPrimitive
Checked conversion from one primitive type to another.