Skip to main content

Destination

Trait Destination 

Source
pub trait Destination: Send {
    // Required method
    fn write_partitions<'async_trait>(
        self: Box<Self>,
        partitions: Vec<BatchStream>,
    ) -> Pin<Box<dyn Future<Output = Result<RunReport, ElError>> + Send + 'async_trait>>
       where Self: 'async_trait;
}
Expand description

A destination. Writes batch partitions atomically and reports stats.

Required Methods§

Source

fn write_partitions<'async_trait>( self: Box<Self>, partitions: Vec<BatchStream>, ) -> Pin<Box<dyn Future<Output = Result<RunReport, ElError>> + Send + 'async_trait>>
where Self: 'async_trait,

Consume the destination and write the partitions. Single-shot. Schema is taken from the first batch each partition emits.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§