Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
PartitionStream in datafusion::physical_plan::streaming - Rust
[go: Go Back, main page]

pub trait PartitionStream: Send + Sync {
    // Required methods
    fn schema(&self) -> &Arc<Schema>;
    fn execute(
        &self,
        ctx: Arc<TaskContext>,
    ) -> Pin<Box<dyn RecordBatchStream<Item = Result<RecordBatch, DataFusionError>> + Send>>;
}
Expand description

A partition that can be converted into a SendableRecordBatchStream

Combined with StreamingTableExec, you can use this trait to implement ExecutionPlan for a custom source with less boiler plate than implementing ExecutionPlan directly for many use cases.

Required Methods§

source

fn schema(&self) -> &Arc<Schema>

Returns the schema of this partition

source

fn execute( &self, ctx: Arc<TaskContext>, ) -> Pin<Box<dyn RecordBatchStream<Item = Result<RecordBatch, DataFusionError>> + Send>>

Returns a stream yielding this partitions values

Implementors§