Skip to main content

Module scalar

Module 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 an optional (encoding nullablity) value (ScalarValue).

Note that the implementations of Scalar are split into several different modules.

Modules§

arbitrary
Arbitrary scalar value generation.

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 typed scalar value.
StructScalar
A scalar value representing a struct with named fields.
Utf8Scalar
A scalar value representing a UTF-8 encoded string.

Enums§

DecimalValue
A decimal value that can be stored in various integer widths.
NumericOperator
Binary element-wise operations on two arrays or two scalars.
PValue
A primitive value that can represent any primitive type supported by Vortex.
ScalarValue
The value stored in a Scalar.

Traits§

ScalarTruncation
A trait for truncating Scalars to a given length in bytes.
StringLike
Types that can hold a valid UTF-8 string.

Functions§

lower_bound
Truncate the value to be less than max_length in bytes and be lexicographically smaller than the value itself
upper_bound
Truncate the value to be less than max_length in bytes and be lexicographically greater than the value itself