pub struct ColumnDecoder;Expand description
Unified column decoder that dispatches based on the EncodingType tag.
Reads the encoding discriminant from an EncodedBlock and delegates
to the corresponding specialised decoder (delta-of-delta, Chimp,
Gorilla, integer, dictionary, bitmap, plain, RLE, or nullable wrapper).
Returns a DecodedColumn that preserves the original column type.
Implementations§
Source§impl ColumnDecoder
impl ColumnDecoder
Sourcepub fn decode(block: &EncodedBlock) -> Result<DecodedColumn>
pub fn decode(block: &EncodedBlock) -> Result<DecodedColumn>
Decode an EncodedBlock back to typed column values.
§Errors
Returns an error if the payload is corrupt or the encoding type is unsupported.
Sourcepub fn decode_bytes(data: &[u8]) -> Result<DecodedColumn>
pub fn decode_bytes(data: &[u8]) -> Result<DecodedColumn>
Convenience: decode from raw bytes (tag + payload).
§Errors
Returns an error if the data is empty, the tag is unknown, or the payload is corrupt.
Trait Implementations§
Source§impl Clone for ColumnDecoder
impl Clone for ColumnDecoder
Source§fn clone(&self) -> ColumnDecoder
fn clone(&self) -> ColumnDecoder
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ColumnDecoder
Auto Trait Implementations§
impl Freeze for ColumnDecoder
impl RefUnwindSafe for ColumnDecoder
impl Send for ColumnDecoder
impl Sync for ColumnDecoder
impl Unpin for ColumnDecoder
impl UnsafeUnpin for ColumnDecoder
impl UnwindSafe for ColumnDecoder
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