pub struct ModelBatchDecoder(/* private fields */);Implementations§
Source§impl ModelBatchDecoder
impl ModelBatchDecoder
Sourcepub fn new(
header: CityArrowHeader,
projection: ProjectionLayout,
options: &ImportOptions,
) -> Result<Self>
pub fn new( header: CityArrowHeader, projection: ProjectionLayout, options: &ImportOptions, ) -> Result<Self>
§Errors
Returns an error when the schema version is not supported or the canonical projection is invalid.
Sourcepub fn push_batch(
&mut self,
table: CanonicalTable,
batch: &RecordBatch,
) -> Result<()>
pub fn push_batch( &mut self, table: CanonicalTable, batch: &RecordBatch, ) -> Result<()>
§Errors
Returns an error when the batch order, schema, or data is invalid.
Sourcepub fn finish(self) -> Result<OwnedCityModel>
pub fn finish(self) -> Result<OwnedCityModel>
§Errors
Returns an error when required tables are missing or reconstruction cannot finish successfully.
Auto Trait Implementations§
impl Freeze for ModelBatchDecoder
impl !RefUnwindSafe for ModelBatchDecoder
impl Send for ModelBatchDecoder
impl Sync for ModelBatchDecoder
impl Unpin for ModelBatchDecoder
impl UnsafeUnpin for ModelBatchDecoder
impl !UnwindSafe for ModelBatchDecoder
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