pub struct MergeRecordDecoder<D> { /* private fields */ }Expand description
Merges the record decoding streams from one or more other decoders, performing a
k-merge based on Record::index_ts().
Implementations§
Source§impl<D> RecordDecoder<D>where
D: DecodeRecordRef,
impl<D> RecordDecoder<D>where
D: DecodeRecordRef,
Sourcepub fn new(decoders: Vec<D>) -> Result<Self>
pub fn new(decoders: Vec<D>) -> Result<Self>
Creates a new record-stream merging decoder.
§Errors
This function returns an error if decoders is empty. It will also return an
error if one of the inner decoders returns an error while decoding the first
record. A decoder returning Ok(None) does not result in a failure.
Trait Implementations§
Source§impl<D> DecodeRecord for RecordDecoder<D>where
D: BufferSlice + DecodeRecordRef,
impl<D> DecodeRecord for RecordDecoder<D>where
D: BufferSlice + DecodeRecordRef,
Source§impl<D> DecodeRecordRef for RecordDecoder<D>where
D: BufferSlice + DecodeRecordRef,
impl<D> DecodeRecordRef for RecordDecoder<D>where
D: BufferSlice + DecodeRecordRef,
Source§impl<D> DecodeStream for RecordDecoder<D>where
D: BufferSlice + DecodeRecordRef,
impl<D> DecodeStream for RecordDecoder<D>where
D: BufferSlice + DecodeRecordRef,
Source§fn decode_stream<T: HasRType>(self) -> StreamIterDecoder<Self, T>where
Self: Sized,
fn decode_stream<T: HasRType>(self) -> StreamIterDecoder<Self, T>where
Self: Sized,
Converts the decoder into a streaming iterator of records of type
T. This
lazily decodes the data.Auto Trait Implementations§
impl<D> Freeze for RecordDecoder<D>
impl<D> RefUnwindSafe for RecordDecoder<D>where
D: RefUnwindSafe,
impl<D> Send for RecordDecoder<D>where
D: Send,
impl<D> Sync for RecordDecoder<D>where
D: Sync,
impl<D> Unpin for RecordDecoder<D>where
D: Unpin,
impl<D> UnwindSafe for RecordDecoder<D>where
D: UnwindSafe,
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