Gets the registry of this feature store.
(self)
| 371 | |
| 372 | @property |
| 373 | def registry(self) -> BaseRegistry: |
| 374 | """Gets the registry of this feature store.""" |
| 375 | if self._registry is None: |
| 376 | self._registry = self._create_registry() |
| 377 | # Add feature service cache to registry for performance optimization |
| 378 | if self._registry and not hasattr(self._registry, "_feature_service_cache"): |
| 379 | setattr( |
| 380 | self._registry, |
| 381 | "_feature_service_cache", |
| 382 | self._feature_service_cache, |
| 383 | ) |
| 384 | if self._registry is None: |
| 385 | raise RuntimeError("Registry failed to initialize properly") |
| 386 | return self._registry |
| 387 | |
| 388 | def _create_registry(self) -> BaseRegistry: |
| 389 | """Create and initialize the registry.""" |
nothing calls this directly
no test coverage detected