1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
// SPDX-License-Identifier: Apache-2.0
// SPDX-FileCopyrightText: Copyright the Vortex contributors
//! Shared execution for native geometry scalar functions.
//!
//! [`dispatch_unary`] and the binary dispatcher handle constant/column operands and strict null
//! propagation without prescribing how a kernel represents geometries or builds its output.
//! Native columnar kernels such as `ST_Envelope` use the unary dispatcher directly.
//!
//! [`execute_binary_geo_types`] adapts row-oriented algorithms from the `geo` ecosystem. It decodes
//! valid inputs into `geo_types::Geometry`; the final output is still a Vortex [`ArrayRef`], such
//! as an `f64` or boolean array.
pub use execute_binary_geo_types;
pub use dispatch_unary;
use ArrayRef;
use Nullability;
use Scalar;
use Mask;
/// A non-null operand presented to a geometry kernel.
pub
/// Shared batch state presented to a null-propagating geometry kernel with `N` operands.
///
/// Binary kernels use the default materialized [`Mask`]. Unary columnar kernels can instead
/// retain a lazy [`vortex_array::validity::Validity`] until they need row-wise access.
pub