Expand description
Scalar function vtable machinery.
This module contains the ScalarFnVTable trait, the machinery to bind, reduce and execute
scalar functions, and in builtin the few functions vortex-array itself is built on. Other scalar
functions live in the vortex-functions crate. Expressions (vortex_expr::Expression)
reference scalar functions at each node.
Strict functions with row-at-a-time kernels can implement unstable::row::RowFn. It handles
decoding, constants, null propagation, output construction, and validity. This API requires the
unstable_row_fns feature and has no compatibility guarantees. Implement ScalarFnVTable
directly for columnar kernels and functions that alias an input or can produce null from valid
inputs.
Modules§
- builtin
- The scalar functions that vortex-array itself is built on.
- display
- The expression-tree interface scalar functions format themselves through.
- session
- unstable
- Experimental scalar-function APIs without compatibility guarantees.
Structs§
- Array
Reduce Node - A
ReduceNodeover an array tree. - Empty
Options - Expression
Reduce Node - A
ReduceNodeover a bound expression tree. - Scalar
FnExecution Result - The result of a single
ScalarFnVTable::execute_step. - Scalar
FnOptions - An opaque handle to expression options.
- Scalar
FnRef - A type-erased scalar function, pairing a vtable with bound options behind a trait object.
- Scalar
FnSignature - Information about the signature of an expression.
- Typed
Scalar FnInstance - A typed scalar function instance, parameterized by a concrete
ScalarFnVTable. - VecExecution
Args - A concrete
ExecutionArgsbacked by aVec<ArrayRef>.
Enums§
- Arity
- The arity (number of arguments) of a function.
- Reduce
Node Validity - Scalar
FnExecution Step - What the scheduler should do after a
ScalarFnVTable::execute_step.
Traits§
- Execution
Args - Arguments for expression execution.
- Reduce
Node - A node used for implementing abstract reduction rules over a tree of scalar functions.
- Scalar
FnPlugin - Registry trait for ID-based deserialization of scalar functions.
- Scalar
FnVTable - This trait defines the interface for scalar function vtables, including methods for serialization, deserialization, validation, child naming, return type computation, and evaluation.
- Scalar
FnVTable Ext - Factory functions for vtables.
Functions§
- is_
not_ null_ node - IsNotNull(child) as a reducible node
- union_
child_ validities - “And” over “node’s” non-nullable children
Type Aliases§
- Child
Name - A reference to the name of a child expression.
- Scalar
FnId - A unique identifier for a scalar function.
- Scalar
FnPlugin Ref - Reference-counted pointer to a scalar function plugin.