pub trait SegmentSourceFactory:
'static
+ Send
+ Sync {
// Required method
fn segment_source(&self, metrics: VortexMetrics) -> Arc<dyn SegmentSource>;
}
Expand description
A factory for creating segment sources that read data from a Vortex file.
This trait abstracts over different implementations of segment sources, allowing for different I/O strategies (e.g., synchronous, asynchronous, memory-mapped) to be used with the same file interface.