pub struct Decoder<R: BufRead> { /* private fields */ }👎Deprecated since 0.3.0: DBZ was renamed to DBN and the format was changed to no longer rely on Zstd.
Expand description
Object for reading, parsing, and serializing a legacy Databento Binary Encoding (DBZ) file.
Implementations§
Source§impl Decoder<BufReader<File>>
impl Decoder<BufReader<File>>
Source§impl<R: BufRead> Decoder<R>
impl<R: BufRead> Decoder<R>
Sourcepub fn new(reader: R) -> Result<Self>
👎Deprecated since 0.3.0: DBZ was renamed to DBN and the format was changed to no longer rely on Zstd.
pub fn new(reader: R) -> Result<Self>
Sourcepub fn with_upgrade_policy(
reader: R,
upgrade_policy: VersionUpgradePolicy,
) -> Result<Self>
👎Deprecated since 0.3.0: DBZ was renamed to DBN and the format was changed to no longer rely on Zstd.
pub fn with_upgrade_policy( reader: R, upgrade_policy: VersionUpgradePolicy, ) -> Result<Self>
Trait Implementations§
Source§impl<R: BufRead> DbnMetadata for Decoder<R>
impl<R: BufRead> DbnMetadata for Decoder<R>
Source§impl<R: BufRead> DecodeRecord for Decoder<R>
impl<R: BufRead> DecodeRecord for Decoder<R>
Source§impl<R: BufRead> DecodeRecordRef for Decoder<R>
impl<R: BufRead> DecodeRecordRef for Decoder<R>
Source§impl<R: BufRead> DecodeStream for Decoder<R>
impl<R: BufRead> DecodeStream for Decoder<R>
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,
Try to decode the DBZ file into a streaming iterator. This decodes the data lazily.
§Errors
This function will return an error if the zstd portion of the DBZ file was compressed in an unexpected manner.
Auto Trait Implementations§
impl<R> Freeze for Decoder<R>where
R: Freeze,
impl<R> RefUnwindSafe for Decoder<R>where
R: RefUnwindSafe,
impl<R> Send for Decoder<R>where
R: Send,
impl<R> Sync for Decoder<R>where
R: Sync,
impl<R> Unpin for Decoder<R>where
R: Unpin,
impl<R> !UnwindSafe for Decoder<R>
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