You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add set_extractors() to TemporalBufferManager for buffer reconfiguration
Adds public API for replacing all extractors on a buffer, enabling
reconfiguration when subscribers are removed. This allows buffers to
optimize from TemporalBuffer to SingleValueBuffer when temporal
extractors are no longer needed.
Implementation:
- Add set_extractors() method that replaces entire extractor list
- Extract common buffer reconfiguration logic to _reconfigure_buffer_if_needed()
- Refactor add_extractor() to use the helper method
Test changes:
- Rename test_add_extractor_switches_to_single_value_buffer to
test_set_extractors_switches_to_single_value_buffer
- Remove private field access (state.extractors.clear()) in test
- Use new public set_extractors() API instead
This prepares for DataService.unregister_subscriber() implementation,
which will need to recalculate extractors when subscribers are removed.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <[email protected]>
0 commit comments