Expand description
Vortex crate containing core logic for encoding and memory representation of arrays.
At the heart of Vortex are arrays.
Arrays are typed views of memory buffers that hold scalars. These buffers can be held in a number of physical encodings to perform lightweight compression that exploits the particular data distribution of the array’s values.
Every data type recognized by Vortex also has a canonical physical encoding format, which arrays can be canonicalized into for ease of access in compute functions.
Modules§
- accessor
- arrays
- All the built-in encoding schemes and arrays.
- arrow
- Utilities to work with
Arrowdata and types. - buffer
- builders
- Builders for Vortex arrays.
- builtins
- A collection of built-in common scalar functions.
- compute
- Compute kernels on top of Vortex Arrays.
- display
- expr
- Vortex’s expression language.
- flatbuffers
- Re-exported autogenerated code from the core Vortex flatbuffer definitions.
- iter
- Iterator over slices of an array, and related utilities.
- kernel
- mask
- matcher
- normalize
- optimizer
- patches
- scalar
- Scalar values and types for the Vortex system.
- search_
sorted - serde
- session
- stats
- Traits and utilities to compute and access array statistics.
- stream
- test_
harness - validity
- Array validity and nullability behavior, used by arrays and compute functions.
- variants
- This module defines extension functionality specific to each Vortex DType.
- vtable
- This module contains the VTable definitions for a Vortex encoding.
Macros§
- assert_
arrays_ eq - assert_
nth_ scalar - Asserts that the scalar at position
$nin array$arrequals$expected. - assert_
nth_ scalar_ is_ null - Asserts that the scalar at position
$nin array$arris null. - match_
each_ pvalue - Utility macro that makes it easy to write expressions generic over the different
PValuevariants. - register_
kernel - Register a kernel for a compute function. See each compute function for the correct type of kernel to register.
- search_
sorted_ conformance_ 9014284834973034448 - Apply #macro_name template to given body
- vtable
Structs§
- AnyCanonical
- A matcher for any canonical array type.
- AnyColumnar
- Array
Adapter - Adapter struct used to lift the
VTabletrait into an object-safeArrayimplementation. - Canonical
Validity - Recursively execute the array until it reaches canonical form along with its validity.
- Empty
Metadata - Empty array metadata
- Execution
Ctx - Execution context for batch CPU compute.
- Mask
Future - A future that resolves to a mask.
- Prost
Metadata - A utility wrapper for Prost metadata serialization.
- RawMetadata
- A utility wrapper for raw metadata serialization. This delegates the serialiation step to the arrays’ vtable.
- Recursive
Canonical - Recursively execute the array until all of its children are canonical.
Enums§
- Canonical
- An enum capturing the default uncompressed encodings for each Vortex type.
- Canonical
View - A view into a canonical array type.
- Columnar
- Represents a columnnar array of data, either in canonical form or as a constant array.
- Columnar
View - Precision
- The precision level for structural equality and hashing of arrays.
Statics§
Traits§
- Array
- The public API trait for all Vortex arrays.
- Array
Buffer Visitor - Array
Child Visitor - Array
Child Visitor Unnamed - A visitor for array children that does not require names.
- ArrayEq
- An equality trait for arrays that represents structural equality with a configurable level of precision. This trait is used primarily to implement common subtree elimination and other array-based caching mechanisms.
- Array
Hash - A hash trait for arrays that represents structural equality with a configurable level of precision. This trait is used primarily to implement common subtree elimination and other array-based caching mechanisms.
- Array
Visitor - Array
Visitor Ext - Deserialize
Metadata - Trait for deserializing Vortex metadata from a vector of unaligned bytes.
- DynArray
Eq - A dynamic version of
ArrayEq. - DynArray
Hash - A dynamic version of
ArrayHash. - Executable
- Marker trait for types that an
ArrayRefcan be executed into. - Into
Array - Trait for converting a type into a Vortex
ArrayRef. - Serialize
Metadata - Trait for serializing Vortex metadata to a vector of unaligned bytes.
- ToCanonical
- Trait for types that can be converted from an owned type into an owned array variant.
- Vortex
Session Execute - Extension trait for creating an execution context from a session.
Type Aliases§
- Array
Context - Array
Ref - A reference counted pointer to a dynamic
Arraytrait object.