pub struct ArrowIpcEncoder { /* private fields */ }Available on crate feature
arrow only.Expand description
Per-stream state for ArrowRecordBatchIpcStreamFormat.
Genuinely stateful, unlike every other format here: the dictionary tracker spans the whole stream, so batches cannot be encoded independently of one another.
Trait Implementations§
Source§impl ItemEncoder<RecordBatch> for ArrowIpcEncoder
impl ItemEncoder<RecordBatch> for ArrowIpcEncoder
Source§fn epilogue(&mut self, buf: &mut BytesMut) -> Result<(), StreamError>
fn epilogue(&mut self, buf: &mut BytesMut) -> Result<(), StreamError>
The end-of-stream marker. Emitted only on a clean end, so a truncated body stays visibly truncated rather than reading as a complete, empty-tailed stream.
Source§fn encode(
&mut self,
item: &RecordBatch,
index: u64,
buf: &mut BytesMut,
) -> Result<(), StreamError>
fn encode( &mut self, item: &RecordBatch, index: u64, buf: &mut BytesMut, ) -> Result<(), StreamError>
Encode one item.
Auto Trait Implementations§
impl Freeze for ArrowIpcEncoder
impl RefUnwindSafe for ArrowIpcEncoder
impl Send for ArrowIpcEncoder
impl Sync for ArrowIpcEncoder
impl Unpin for ArrowIpcEncoder
impl UnsafeUnpin for ArrowIpcEncoder
impl UnwindSafe for ArrowIpcEncoder
Blanket Implementations§
impl<T> Allocation for T
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