pub struct GorillaEncoder;Expand description
Gorilla float encoder.
Implementations§
Source§impl GorillaEncoder
impl GorillaEncoder
Sourcepub fn encode(values: &[f64]) -> Result<Vec<u8>>
pub fn encode(values: &[f64]) -> Result<Vec<u8>>
Encode a sequence of f64 values using Gorilla XOR encoding.
§Errors
Returns EncodingError::EmptyInput if values is empty.
Sourcepub fn encode_with_scratch(
values: &[f64],
scratch: &mut GorillaEncodeScratch,
) -> Result<Vec<u8>>
pub fn encode_with_scratch( values: &[f64], scratch: &mut GorillaEncodeScratch, ) -> Result<Vec<u8>>
Encode using caller-provided scratch buffers.
Reuses buffers across multiple calls to avoid repeated allocation during flush/compaction of many columns.
Trait Implementations§
Source§impl Clone for GorillaEncoder
impl Clone for GorillaEncoder
Source§fn clone(&self) -> GorillaEncoder
fn clone(&self) -> GorillaEncoder
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 GorillaEncoder
Auto Trait Implementations§
impl Freeze for GorillaEncoder
impl RefUnwindSafe for GorillaEncoder
impl Send for GorillaEncoder
impl Sync for GorillaEncoder
impl Unpin for GorillaEncoder
impl UnsafeUnpin for GorillaEncoder
impl UnwindSafe for GorillaEncoder
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