pub struct ArrowIpcCodec { /* private fields */ }Available on crate feature
arrow only.Expand description
A Decoder that yields one RecordBatch per IPC message.
The schema is read from the stream, so nothing needs to be configured to decode one.
Implementations§
Source§impl ArrowIpcCodec
impl ArrowIpcCodec
Sourcepub fn new_with_max_length(max_length: usize) -> Self
pub fn new_with_max_length(max_length: usize) -> Self
A codec that rejects any single batch longer than max_length bytes.
Trait Implementations§
Source§impl Debug for ArrowIpcCodec
impl Debug for ArrowIpcCodec
Source§impl Decoder for ArrowIpcCodec
impl Decoder for ArrowIpcCodec
Source§type Item = Result<RecordBatch, StreamError>
type Item = Result<RecordBatch, StreamError>
Always Ok(_): the decoder carries dictionary state across the whole stream, so a
message it could not read leaves it unable to interpret the ones after it.
Source§type Error = StreamError
type Error = StreamError
The type of unrecoverable frame decoding errors. Read more
Source§fn decode(
&mut self,
buf: &mut BytesMut,
) -> Result<Option<Self::Item>, StreamError>
fn decode( &mut self, buf: &mut BytesMut, ) -> Result<Option<Self::Item>, StreamError>
Attempts to decode a frame from the provided buffer of bytes. Read more
Source§fn decode_eof(
&mut self,
buf: &mut BytesMut,
) -> Result<Option<Self::Item>, StreamError>
fn decode_eof( &mut self, buf: &mut BytesMut, ) -> Result<Option<Self::Item>, StreamError>
A default method available to be called when there are no more bytes
available to be read from the underlying I/O. Read more
Auto Trait Implementations§
impl !RefUnwindSafe for ArrowIpcCodec
impl !UnwindSafe for ArrowIpcCodec
impl Freeze for ArrowIpcCodec
impl Send for ArrowIpcCodec
impl Sync for ArrowIpcCodec
impl Unpin for ArrowIpcCodec
impl UnsafeUnpin for ArrowIpcCodec
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