pub struct DynSchema {
pub schema: SchemaRef,
}Expand description
A runtime Arrow schema wrapper used by the unified facade.
Fields§
§schema: SchemaRefThe underlying arrow_schema::SchemaRef.
Implementations§
Source§impl DynSchema
impl DynSchema
Sourcepub fn iter_views<'a>(
&'a self,
batch: &'a RecordBatch,
) -> Result<DynRowViews<'a>, DynViewError>
pub fn iter_views<'a>( &'a self, batch: &'a RecordBatch, ) -> Result<DynRowViews<'a>, DynViewError>
Create a dynamic row view iterator over batch, validating shapes first.
§Errors
Returns DynViewError if the batch schema does not match this schema.
Sourcepub fn view_at<'a>(
&'a self,
batch: &'a RecordBatch,
row: usize,
) -> Result<DynRowView<'a>, DynViewError>
pub fn view_at<'a>( &'a self, batch: &'a RecordBatch, row: usize, ) -> Result<DynRowView<'a>, DynViewError>
Borrow a single row from batch at row as a dynamic view.
§Errors
Returns DynViewError if the batch schema mismatches this schema or if the
requested row index is out of bounds.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DynSchema
impl RefUnwindSafe for DynSchema
impl Send for DynSchema
impl Sync for DynSchema
impl Unpin for DynSchema
impl UnwindSafe for DynSchema
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