pub struct PcoEncoder;Expand description
Pcodec encoder for f64, i64 and u64 columns.
Implementations§
Source§impl PcoEncoder
impl PcoEncoder
Sourcepub fn encode_timestamps(values: &[i64]) -> Result<Vec<u8>>
pub fn encode_timestamps(values: &[i64]) -> Result<Vec<u8>>
Encode a timestamp column.
Timestamps are the one column whose shape is known before any data is seen — a near-arithmetic sequence with jitter and gaps — so the delta order is pinned to second-order (delta-of-delta) rather than auto-detected. The decoder needs no such hint; the pco file describes its own delta encoding.
§Errors
As encode_f64.
Auto Trait Implementations§
impl Freeze for PcoEncoder
impl RefUnwindSafe for PcoEncoder
impl Send for PcoEncoder
impl Sync for PcoEncoder
impl Unpin for PcoEncoder
impl UnsafeUnpin for PcoEncoder
impl UnwindSafe for PcoEncoder
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