pub struct ColumnTemperatureTracker { /* private fields */ }Expand description
Column temperature tracker for all columns in a table
Implementations§
Source§impl ColumnTemperatureTracker
impl ColumnTemperatureTracker
Sourcepub fn record_updates(&self, column_names: &[&str])
pub fn record_updates(&self, column_names: &[&str])
Record an update to specific columns
Sourcepub fn get_hot_columns(&self) -> HashSet<String>
pub fn get_hot_columns(&self) -> HashSet<String>
Get hot columns (above threshold)
Sourcepub fn get_cold_columns(&self) -> HashSet<String>
pub fn get_cold_columns(&self) -> HashSet<String>
Get cold columns (at or below threshold)
Sourcepub fn get_all_temperatures(&self) -> Vec<ColumnTemperature>
pub fn get_all_temperatures(&self) -> Vec<ColumnTemperature>
Get all temperatures for reporting
Sourcepub fn set_hot_threshold(&self, threshold: f64)
pub fn set_hot_threshold(&self, threshold: f64)
Set hot threshold (lock-free via atomic u64 bit pattern)
Threshold ∈ [0.0, 1.0]. Columns with temperature > threshold are “hot” and participate in compaction merges. Lower threshold = more columns treated as hot.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for ColumnTemperatureTracker
impl !RefUnwindSafe for ColumnTemperatureTracker
impl Send for ColumnTemperatureTracker
impl Sync for ColumnTemperatureTracker
impl Unpin for ColumnTemperatureTracker
impl UnsafeUnpin for ColumnTemperatureTracker
impl UnwindSafe for ColumnTemperatureTracker
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more