pub struct BlockMeta {
pub ema_rate: f32,
pub access_window: u64,
pub last_access: u64,
pub access_count: u64,
pub current_tier: Tier,
pub tier_since: u64,
}Expand description
Per-block metadata tracked by the tiered store.
Fields§
§ema_rate: f32Exponentially-weighted moving average of access rate.
access_window: u64Sliding window bitmap of tick-level activity (1 bit per tick).
popcount gives the number of active ticks in the last 64.
last_access: u64Timestamp (tick) of the most recent access.
access_count: u64Cumulative access count.
current_tier: TierCurrent storage tier.
tier_since: u64Tick at which the block was last assigned to its current tier.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for BlockMeta
impl RefUnwindSafe for BlockMeta
impl Send for BlockMeta
impl Sync for BlockMeta
impl Unpin for BlockMeta
impl UnsafeUnpin for BlockMeta
impl UnwindSafe for BlockMeta
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