pub enum TimestampEncoding {
Auto,
Pco,
DeltaOfDelta,
Plain,
}Expand description
Which codec ColumnEncoder::encode_timestamps_with should use.
The float equivalent lives in chronix_core::config::FloatEncoding
because it is a user-facing knob; this one is not (yet) reachable from
configuration, and exists so the codec that lost the default can still be
produced on demand — by the tests that measure it, by a tool that has to
write a segment in the old shape, and by anyone re-running the comparison
when pco next changes.
Variants§
Auto
Trial-encode pco and delta-of-delta, keep the smaller, ties to pco.
Pco
Always Pcodec (EncodingType::PcoI64).
DeltaOfDelta
Always delta-of-delta (EncodingType::DeltaOfDelta).
Plain
No compression (EncodingType::PlainI64).
Trait Implementations§
Source§impl Clone for TimestampEncoding
impl Clone for TimestampEncoding
Source§fn clone(&self) -> TimestampEncoding
fn clone(&self) -> TimestampEncoding
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 TimestampEncoding
Source§impl Debug for TimestampEncoding
impl Debug for TimestampEncoding
Source§impl Default for TimestampEncoding
impl Default for TimestampEncoding
Source§fn default() -> TimestampEncoding
fn default() -> TimestampEncoding
Returns the “default value” for a type. Read more
impl Eq for TimestampEncoding
Source§impl PartialEq for TimestampEncoding
impl PartialEq for TimestampEncoding
impl StructuralPartialEq for TimestampEncoding
Auto Trait Implementations§
impl Freeze for TimestampEncoding
impl RefUnwindSafe for TimestampEncoding
impl Send for TimestampEncoding
impl Sync for TimestampEncoding
impl Unpin for TimestampEncoding
impl UnsafeUnpin for TimestampEncoding
impl UnwindSafe for TimestampEncoding
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