vibespatial.spatial.index_backends

Operation capabilities for coexisting spatial-index execution backends.

Layouts are reusable state; accelerators such as point grids and segment BVHs are strategies within those layouts. The public API chooses by operation and reports the selected implementation through normal dispatch events.

Attributes

Classes

SpatialIndexBackend

Enum where members are also (and must be) strings

IndexBackendCapability

Functions

nearest_backend(→ SpatialIndexBackend)

Choose a nearest contract; individual backends validate family admission.

Module Contents

class vibespatial.spatial.index_backends.SpatialIndexBackend

Enum where members are also (and must be) strings

FLAT = 'flat-morton'
PACKED_STR = 'packed-str'
FIXED_K = 'bounded-knn'
HOST_STR = 'strtree-host'
class vibespatial.spatial.index_backends.IndexBackendCapability
operations: tuple[str, Ellipsis]
geometry_families: tuple[str, Ellipsis]
device: bool
exact_ties: bool
vibespatial.spatial.index_backends.INDEX_BACKEND_CAPABILITIES
vibespatial.spatial.index_backends.nearest_backend(*, k: int, device: bool) → SpatialIndexBackend

Choose a nearest contract; individual backends validate family admission.