pub struct PartitionWindow {
pub history_days: Option<u32>,
pub forecast_days: Option<u32>,
pub partition_budget: Option<u32>,
}Expand description
Time-window sizing inputs that drive automatic granularity selection and forecast-aware partition extension.
Fields§
§history_days: Option<u32>Expected historical horizon in days. Combined with forecast_days
to compute the total time span the partition function must cover.
forecast_days: Option<u32>Expected forward horizon in days (forecast / projection data).
Causes the extend_proc to pre-allocate partitions far enough
ahead to receive future-dated rows.
partition_budget: Option<u32>Maximum number of partitions before the materializer auto-coarsens
the granularity. Defaults to 2000 (well under SQL Server’s 5000
hard limit, leaving headroom for years of extend_proc runs).
Implementations§
Source§impl PartitionWindow
impl PartitionWindow
Sourcepub fn is_default(&self) -> bool
pub fn is_default(&self) -> bool
Returns true when no sizing fields are populated (used by serde
skip_serializing_if to keep YAML/JSON outputs tidy).
Trait Implementations§
Source§impl Clone for PartitionWindow
impl Clone for PartitionWindow
Source§fn clone(&self) -> PartitionWindow
fn clone(&self) -> PartitionWindow
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 moreSource§impl Debug for PartitionWindow
impl Debug for PartitionWindow
Source§impl Default for PartitionWindow
impl Default for PartitionWindow
Source§fn default() -> PartitionWindow
fn default() -> PartitionWindow
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PartitionWindow
impl<'de> Deserialize<'de> for PartitionWindow
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 PartitionWindow
Source§impl PartialEq for PartitionWindow
impl PartialEq for PartitionWindow
Source§impl Serialize for PartitionWindow
impl Serialize for PartitionWindow
impl StructuralPartialEq for PartitionWindow
Auto Trait Implementations§
impl Freeze for PartitionWindow
impl RefUnwindSafe for PartitionWindow
impl Send for PartitionWindow
impl Sync for PartitionWindow
impl Unpin for PartitionWindow
impl UnsafeUnpin for PartitionWindow
impl UnwindSafe for PartitionWindow
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