pub struct Executor { /* private fields */ }Expand description
Executes a physical operator tree and collects results.
Implementations§
Source§impl Executor
impl Executor
Sourcepub fn with_columns(columns: Vec<String>) -> Self
pub fn with_columns(columns: Vec<String>) -> Self
Creates an executor with specified column names.
Sourcepub fn with_columns_and_types(
columns: Vec<String>,
column_types: Vec<LogicalType>,
) -> Self
pub fn with_columns_and_types( columns: Vec<String>, column_types: Vec<LogicalType>, ) -> Self
Creates an executor with specified column names and types.
Sourcepub fn execute(&self, operator: &mut dyn Operator) -> Result<QueryResult>
pub fn execute(&self, operator: &mut dyn Operator) -> Result<QueryResult>
Executes a physical operator and collects all results.
§Errors
Returns an error if operator execution fails.
Sourcepub fn execute_with_limit(
&self,
operator: &mut dyn Operator,
limit: usize,
) -> Result<QueryResult>
pub fn execute_with_limit( &self, operator: &mut dyn Operator, limit: usize, ) -> Result<QueryResult>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Executor
impl RefUnwindSafe for Executor
impl Send for Executor
impl Sync for Executor
impl Unpin for Executor
impl UnwindSafe for Executor
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more