pub trait DynamicExpressionSource:
Debug
+ Display
+ Send
+ Sync
+ 'static {
// Required methods
fn generation(&self) -> u64;
fn current(&self, scope: &DType) -> VortexResult<BoundExpression>;
}Expand description
A source of a predicate that can change while a query runs, such as the build-side bounds of a hash join or the threshold of a top-N operator in a compute engine.
Required Methods§
Sourcefn generation(&self) -> u64
fn generation(&self) -> u64
A monotonically increasing counter, incremented whenever Self::current can return a
different predicate, including a bound becoming available or a filter completing.
A generation must not be reused for another predicate.
Sourcefn current(&self, scope: &DType) -> VortexResult<BoundExpression>
fn current(&self, scope: &DType) -> VortexResult<BoundExpression>
The current predicate, bound against scope.
The scope is a struct whose field i, named by input_field_name, holds the child i
of the dynamic expression. The predicate must return a boolean.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".