#[non_exhaustive]pub struct SplitPlan {
pub splits: Vec<PlannedSplit>,
pub finality: PlanFinality,
pub planner_state: Option<Vec<u8>>,
}Expand description
One planner run’s output.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.splits: Vec<PlannedSplit>The enumerated work. On a replan, splits already planned are deduplicated by id (create-if-absent) — emitting them again is a cheap no-op, which is what makes replanning idempotent.
finality: PlanFinalityWhether this enumeration is complete.
planner_state: Option<Vec<u8>>Opaque planner cursor persisted in the plan record and handed back
on the next run via PlanContext::planner_state (e.g. an
object-store listing’s start-after key). None keeps the previous
cursor.
Implementations§
Source§impl SplitPlan
impl SplitPlan
Sourcepub fn new(splits: Vec<PlannedSplit>, finality: PlanFinality) -> SplitPlan
pub fn new(splits: Vec<PlannedSplit>, finality: PlanFinality) -> SplitPlan
A plan with no cursor update.
Sourcepub fn with_planner_state(self, state: Vec<u8>) -> SplitPlan
pub fn with_planner_state(self, state: Vec<u8>) -> SplitPlan
Persist a planner cursor for the next run.
Trait Implementations§
impl Eq for SplitPlan
impl StructuralPartialEq for SplitPlan
Auto Trait Implementations§
impl Freeze for SplitPlan
impl RefUnwindSafe for SplitPlan
impl Send for SplitPlan
impl Sync for SplitPlan
impl Unpin for SplitPlan
impl UnsafeUnpin for SplitPlan
impl UnwindSafe for SplitPlan
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.