pub struct PushdownContext<'a> {
pub schema: &'a Schema,
pub exec_ctx: Option<&'a ExecutionContext>,
}Expand description
Context for pushdown operations
Fields§
§schema: &'a SchemaSchema for type coercion and column index lookup
exec_ctx: Option<&'a ExecutionContext>Execution context for parameter resolution
Implementations§
Source§impl<'a> PushdownContext<'a>
impl<'a> PushdownContext<'a>
pub fn new(schema: &'a Schema, exec_ctx: Option<&'a ExecutionContext>) -> Self
Sourcepub fn column_type(&self, name: &str) -> Option<DataType>
pub fn column_type(&self, name: &str) -> Option<DataType>
Get column data type by name
Sourcepub fn has_column(&self, name: &str) -> bool
pub fn has_column(&self, name: &str) -> bool
Check if a column exists in the schema
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for PushdownContext<'a>
impl<'a> !UnwindSafe for PushdownContext<'a>
impl<'a> Freeze for PushdownContext<'a>
impl<'a> Send for PushdownContext<'a>
impl<'a> Sync for PushdownContext<'a>
impl<'a> Unpin for PushdownContext<'a>
impl<'a> UnsafeUnpin for PushdownContext<'a>
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