pub struct StatisticsMaintenance { /* private fields */ }Expand description
Transactional maintenance metadata. Existing column statistics remain available while this record tracks changes awaiting a replacement.
Implementations§
Source§impl StatisticsMaintenance
impl StatisticsMaintenance
pub const KEY_PREFIX: &'static str = "uqa.statistics.maintenance.v1:"
pub fn key(table: &str) -> String
pub fn load( catalog: &dyn CatalogFacade, table: &str, ) -> StorageBackendResult<Self>
pub fn load_for( catalog: &dyn CatalogFacade, table: &str, object_id: [u8; 16], ) -> StorageBackendResult<Self>
pub fn save( &self, catalog: &dyn CatalogFacade, table: &str, ) -> StorageBackendResult<()>
pub fn dirty(&self) -> bool
pub fn missing(&self, statistics_empty: bool) -> bool
pub fn invalidates_existing_statistics(&self) -> bool
pub fn due(&self, missing: bool, now: u64, statistics_format: u32) -> bool
pub fn analyzed_for( catalog: &dyn CatalogFacade, table: &str, object_id: [u8; 16], rows: u64, statistics_format: u32, ) -> StorageBackendResult<()>
pub fn record_changes( &mut self, object_id: [u8; 16], count: u64, previous_rows: Option<u64>, now: u64, ) -> StorageBackendResult<()>
Sourcepub fn encode(
&self,
control: &StorageReadControl,
) -> VersionResult<BudgetedVec<u8>>
pub fn encode( &self, control: &StorageReadControl, ) -> VersionResult<BudgetedVec<u8>>
Encode the fixed-size state under the same budget and cancellation control as its record.
Trait Implementations§
Source§impl Clone for StatisticsMaintenance
impl Clone for StatisticsMaintenance
Source§impl Debug for StatisticsMaintenance
impl Debug for StatisticsMaintenance
Source§impl Default for StatisticsMaintenance
impl Default for StatisticsMaintenance
Source§impl<'de> Deserialize<'de> for StatisticsMaintenancewhere
StatisticsMaintenance: Default,
impl<'de> Deserialize<'de> for StatisticsMaintenancewhere
StatisticsMaintenance: Default,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for StatisticsMaintenance
Source§impl PartialEq for StatisticsMaintenance
impl PartialEq for StatisticsMaintenance
Source§impl Serialize for StatisticsMaintenance
impl Serialize for StatisticsMaintenance
impl StructuralPartialEq for StatisticsMaintenance
Auto Trait Implementations§
impl Freeze for StatisticsMaintenance
impl RefUnwindSafe for StatisticsMaintenance
impl Send for StatisticsMaintenance
impl Sync for StatisticsMaintenance
impl Unpin for StatisticsMaintenance
impl UnsafeUnpin for StatisticsMaintenance
impl UnwindSafe for StatisticsMaintenance
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