pub struct RecordBatchBuilder { /* private fields */ }Expand description
Builds Arrow RecordBatch objects from a stream of raw COBOL records.
Implementations§
Source§impl RecordBatchBuilder
impl RecordBatchBuilder
Sourcepub fn new(
arrow_schema: Arc<ArrowSchema>,
cobol_schema: &Schema,
options: &ArrowOptions,
) -> Result<Self>
pub fn new( arrow_schema: Arc<ArrowSchema>, cobol_schema: &Schema, options: &ArrowOptions, ) -> Result<Self>
Sourcepub fn append_record(&mut self, record: &[u8]) -> Result<Option<RecordBatch>>
pub fn append_record(&mut self, record: &[u8]) -> Result<Option<RecordBatch>>
Append a raw record. Returns Some(batch) when batch_size is reached.
§Errors
Returns an error if decoding or batch construction fails.
Auto Trait Implementations§
impl Freeze for RecordBatchBuilder
impl !RefUnwindSafe for RecordBatchBuilder
impl Send for RecordBatchBuilder
impl !Sync for RecordBatchBuilder
impl Unpin for RecordBatchBuilder
impl UnsafeUnpin for RecordBatchBuilder
impl !UnwindSafe for RecordBatchBuilder
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