pub struct StreamId { /* private fields */ }Expand description
Identity of a single deterministic RNG stream.
Stream identity is built from normalized table, column/planner, and operator names only. A traversal index (row number, retry count, visit order) must never enter the hash: the same logical identity has to rederive the same stream no matter how many other streams were derived before it in a given run.
Implementations§
Source§impl StreamId
impl StreamId
Sourcepub fn table(table: impl Into<String>) -> Self
pub fn table(table: impl Into<String>) -> Self
Stream for table-level decisions (e.g. row count planning).
Sourcepub fn column(
table: impl Into<String>,
column: impl Into<String>,
operator: impl Into<String>,
) -> Self
pub fn column( table: impl Into<String>, column: impl Into<String>, operator: impl Into<String>, ) -> Self
Stream for a single column’s value generation.
Sourcepub fn planner(table: impl Into<String>) -> Self
pub fn planner(table: impl Into<String>) -> Self
Stream for planner decisions scoped to a table (row counts, child distributions, and similar structural choices).
Sourcepub fn rounding(table: impl Into<String>) -> Self
pub fn rounding(table: impl Into<String>) -> Self
Stream for a table’s stochastic row-count rounding decision.
The row compiler resolves an exact integer count per table; when the
resolved target is fractional (e.g. a --scale that lands on 1.5), the
remainder is rounded up with probability equal to the fraction. Keying
the stream on the table name (behind the rows.rounding prefix) keeps
that decision stable and independent of every other stream in the run.
Trait Implementations§
impl Eq for StreamId
impl StructuralPartialEq for StreamId
Auto Trait Implementations§
impl Freeze for StreamId
impl RefUnwindSafe for StreamId
impl Send for StreamId
impl Sync for StreamId
impl Unpin for StreamId
impl UnsafeUnpin for StreamId
impl UnwindSafe for StreamId
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<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§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
key and return true if they are equal.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