Skip to main content

zeppelin_embed/tier/
mod.rs

1//! Automatic per-segment storage-tier policy and host-invoked maintenance.
2
3pub mod maintain;
4pub mod policy;
5pub mod thresholds;
6
7pub use maintain::{
8    GraphBuildProfileReport, MaintenanceBudget, MaintenanceError, MaintenanceReport,
9    MaintenanceStatus, RefinementPassCounters,
10};
11pub use policy::{
12    RefinementPlan, SegmentStats, StorePlan, StoreStats, TierPlan, decide, decide_refinement,
13    decide_store,
14};
15pub use thresholds::{PROVISIONAL_TIER_THRESHOLDS, TierThresholds};
16
17/// The query structure currently available for one segment.
18#[derive(Clone, Copy, Debug, Eq, PartialEq)]
19pub enum SegmentTier {
20    /// Mutable rows are always searched exhaustively.
21    ActiveScan,
22    /// An immutable segment without a published graph is searched exhaustively.
23    SealedScan,
24    /// An immutable segment has a published graph accelerator.
25    SealedGraph,
26}