Expand description
A type system for Vortex
This crate contains the core logical type system for Vortex, including the definition of data types, and (optionally) logic for their serialization and deserialization.
Re-exports§
pub use half;
Modules§
- arrow
- Convert between Vortex
crate::DTypeand Apache Arrowarrow_schema::DataType. - datetime
- Module for Vortex datetime extension types.
- flatbuffers
- Flatbuffer representations for DTypes
- proto
- Protocol buffer representations for DTypes
Macros§
- match_
each_ float_ ptype - Macro to match over each floating point type, binding the corresponding native type (from
NativePType) - match_
each_ integer_ ptype - Macro to match over each integer PType, binding the corresponding native type (from
NativePType) - match_
each_ native_ ptype - Macro to match over each PType, binding the corresponding native type (from
NativePType) - match_
each_ native_ simd_ ptype - Macro to match over each SIMD capable
PType, binding the corresponding native type (fromNativePType) - match_
each_ signed_ integer_ ptype - Macro to match over each signed integer type, binding the corresponding native type (from
NativePType) - match_
each_ unsigned_ integer_ ptype - Macro to match over each unsigned integer type, binding the corresponding native type (from
NativePType)
Structs§
- DecimalD
Type - Parameters that define the precision and scale of a decimal type.
- ExtD
Type - A type descriptor for an extension type
- ExtID
- A unique identifier for an extension type
- ExtMetadata
- Opaque metadata for an extension type
- FieldD
Type - DType of a struct’s field, either owned or a pointer to an underlying flatbuffer.
- Field
Path - A path through a (possibly nested) struct, composed of a sequence of field selectors
- StructD
Type - A struct dtype is a list of names and corresponding dtypes
Enums§
- DType
- The logical types of elements in Vortex arrays.
- Field
- A selector for a field in a struct
- Field
Mask - Represents a field mask, which is a projection of fields under a layout.
- Nullability
- Whether an instance of a DType can be `null or not
- PType
- Physical type enum, represents the in-memory physical layout but might represent a different logical type.
Constants§
- DECIMA
L128_ MAX_ PRECISION - Maximum precision for a Decimal128 type from Arrow
- DECIMA
L128_ MAX_ SCALE - Maximum sacle for a Decimal128 type from Arrow
- DECIMA
L256_ MAX_ PRECISION - Maximum precision for a Decimal256 type from Arrow
- DECIMA
L256_ MAX_ SCALE - Maximum sacle for a Decimal256 type from Arrow
Traits§
- NativeP
Type - A trait for native Rust types that correspond 1:1 to a PType
- ToBytes
- A trait for types that can be converted to a little-endian byte slice
- TryFrom
Bytes - A trait for types that can be converted from a little-endian byte slice
Type Aliases§
- Field
Name - A name for a field in a struct
- Field
Names - An ordered list of field names in a struct