Skip to main content

PhysicalOperator

Trait PhysicalOperator 

Source
pub trait PhysicalOperator: Send + Sync {
    // Required methods
    fn schema(&self) -> &Arc<Schema> ⓘ;
    fn execute(&self, input: Vec<RecordBatch>) -> Result<Vec<RecordBatch>>;
    fn children(&self) -> Vec<Arc<dyn PhysicalOperator>>;
}
Expand description

Trait for physical operators that can be executed

Required Methods§

Source

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

Get the schema of the output

Source

fn execute(&self, input: Vec<RecordBatch>) -> Result<Vec<RecordBatch>>

Execute the operator and produce output batches

Source

fn children(&self) -> Vec<Arc<dyn PhysicalOperator>>

Get children operators

Implementors§