vibespatial.spatial.component_parent_reduction

Parent-aware reduction of point matches against multipart query rows.

Physical shape

Logical MultiPolygon contains Point matches are lowered to Polygon-part candidate/refine relations. Exact part hits are mapped back to packed (point row, parent query row) keys, radix sorted, deduplicated, and reduced to the indexed-row result shape. Two aligned point indexes intersect their sorted parent-key streams so pickup and dropoff points may match different parts of the same parent.

This is a private reducer beneath the existing public spatial-index aggregate API. It does not export relation pairs. Dynamic exact relations retain their ordinary query-stage admission; every additional key/sort/reduction temporary is admitted from host-known capacity before allocation.

Attributes

cp

Functions

try_component_parent_pair_match_counts(native_index, ...)

Try the parent-aware component shape for aligned point indexes.

Module Contents

vibespatial.spatial.component_parent_reduction.cp = None
vibespatial.spatial.component_parent_reduction.try_component_parent_pair_match_counts(native_index, aligned_native_index, query_owned, *, predicate: str)

Try the parent-aware component shape for aligned point indexes.