pub struct ChunkOffsets {
pub rid_offset: usize,
pub master_local: Vec<usize>,
pub hn_master_counter: u64,
}Expand description
Carries the running counters that record_id/master_id generation
depend on across a sequence of chunked runs (--chunk-size), so chunk
N+1 continues exactly where chunk N left off instead of restarting at
0 — genuinely contiguous, global identifiers over the whole logical
dataset, with no shard-tag hack needed on top. Defaults (all zero) give
the single-run behavior, unchanged.
Fields§
§rid_offset: usizeNext record_id index to hand out (see record_id_string).
master_local: Vec<usize>Next local master_id index per entity, indexed by the entity’s
position in PipelineConfig::entity_plans (see entity_prefix).
Entities absent from a shorter previous chunk’s plan (shouldn’t
happen — the same schema/--only-entity produces the same plan
shape every chunk) simply default to 0 via master_base.
hn_master_counter: u64Next HN-{:09} counter value (see hn_master_id_counter).
Trait Implementations§
Source§impl Clone for ChunkOffsets
impl Clone for ChunkOffsets
Source§fn clone(&self) -> ChunkOffsets
fn clone(&self) -> ChunkOffsets
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ChunkOffsets
impl Debug for ChunkOffsets
Source§impl Default for ChunkOffsets
impl Default for ChunkOffsets
Source§fn default() -> ChunkOffsets
fn default() -> ChunkOffsets
Auto Trait Implementations§
impl Freeze for ChunkOffsets
impl RefUnwindSafe for ChunkOffsets
impl Send for ChunkOffsets
impl Sync for ChunkOffsets
impl Unpin for ChunkOffsets
impl UnsafeUnpin for ChunkOffsets
impl UnwindSafe for ChunkOffsets
Blanket Implementations§
impl<T> Allocation for T
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
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<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more