Skip to main content

ColumnarSegmentProvider

Trait ColumnarSegmentProvider 

Source
pub trait ColumnarSegmentProvider: Send + Sync {
    // Required methods
    fn source_limits(&self) -> Vec<SourceLimit>;
    fn open(
        &self,
        metadata_limit_bytes: u64,
    ) -> Result<Box<dyn ColumnarSegmentCursor>>;

    // Provided method
    fn source_name(&self) -> &'static str { ... }
}
Expand description

Incremental batch source and stream contracts. Re-consumable V08 columnar source provider supplied by an adapter crate.

Required Methods§

Source

fn source_limits(&self) -> Vec<SourceLimit>

Static limitations visible before a V08 cursor is opened.

Source

fn open( &self, metadata_limit_bytes: u64, ) -> Result<Box<dyn ColumnarSegmentCursor>>

Open a V08 cursor, bounded by the caller’s metadata allocation limit.

Provided Methods§

Source

fn source_name(&self) -> &'static str

Stable source identifier for diagnostics.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§