#[repr(u8)]
pub enum FastFieldCodecType {
Bitpacked,
Linear,
BlockwiseLinear,
}
Expand description
Available codecs to use to encode the u64 (via MonotonicallyMappableToU64
) converted data.
Variants
Bitpacked
Bitpack all values in the value range. The number of bits is defined by the amplitude
column.max_value() - column.min_value()
Linear
Linear interpolation puts a line between the first and last value and then bitpacks the values by the offset from the line. The number of bits is defined by the max deviation from the line.
BlockwiseLinear
Same as FastFieldCodecType::Linear
, but encodes in blocks of 512 elements.
Trait Implementations
sourceimpl BinarySerializable for FastFieldCodecType
impl BinarySerializable for FastFieldCodecType
sourcefn deserialize<R: Read>(reader: &mut R) -> Result<Self>
fn deserialize<R: Read>(reader: &mut R) -> Result<Self>
Deserialize
sourceimpl Clone for FastFieldCodecType
impl Clone for FastFieldCodecType
sourcefn clone(&self) -> FastFieldCodecType
fn clone(&self) -> FastFieldCodecType
Returns a copy of the value. Read more
1.0.0const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for FastFieldCodecType
impl Debug for FastFieldCodecType
sourceimpl Ord for FastFieldCodecType
impl Ord for FastFieldCodecType
sourceimpl PartialEq<FastFieldCodecType> for FastFieldCodecType
impl PartialEq<FastFieldCodecType> for FastFieldCodecType
sourcefn eq(&self, other: &FastFieldCodecType) -> bool
fn eq(&self, other: &FastFieldCodecType) -> bool
sourceimpl PartialOrd<FastFieldCodecType> for FastFieldCodecType
impl PartialOrd<FastFieldCodecType> for FastFieldCodecType
sourcefn partial_cmp(&self, other: &FastFieldCodecType) -> Option<Ordering>
fn partial_cmp(&self, other: &FastFieldCodecType) -> Option<Ordering>
1.0.0const fn lt(&self, other: &Rhs) -> bool
const fn lt(&self, other: &Rhs) -> bool
1.0.0const fn le(&self, other: &Rhs) -> bool
const fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read more1.0.0const fn gt(&self, other: &Rhs) -> bool
const fn gt(&self, other: &Rhs) -> bool
impl Copy for FastFieldCodecType
impl Eq for FastFieldCodecType
impl StructuralEq for FastFieldCodecType
impl StructuralPartialEq for FastFieldCodecType
Auto Trait Implementations
impl RefUnwindSafe for FastFieldCodecType
impl Send for FastFieldCodecType
impl Sync for FastFieldCodecType
impl Unpin for FastFieldCodecType
impl UnwindSafe for FastFieldCodecType
Blanket Implementations
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstablefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T> ToOwned for Twhere
T: Clone,
impl<T> ToOwned for Twhere
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
fn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
Uses borrowed data to replace owned data, usually by cloning. Read more