Skip to main content

Module prune

Module prune 

Source
Expand description

File and zone pruning for spatial filters, using the GeometryAabb axis-aligned bounding box (AABB) statistic.

One module per predicate. To prune a new one: recover the geometry column and the constant with geometry_and_constant (preserving operand order for asymmetric predicates), reduce the constant with query_aabb, build the proof over aabb_stat, and register the rule in crate::initialize. No new statistic or file-format change is needed.

Structs§

SpatialContainsPrune
Prunes files and zones for positive ST_Contains filters using their aggregate AABB.
SpatialDistancePrune
Prunes chunks for ST_Distance(geom, const) <op> r filters.
SpatialIntersectsPrune
Prunes chunks for ST_Intersects(geom, const) filters: a chunk whose box is strictly separated from the constant’s bounding box cannot contain an intersecting row.