pub struct BackfillPartition { /* private fields */ }Expand description
A deterministic partition contract bound to a stable historical attribute.
Implementations§
Source§impl BackfillPartition
impl BackfillPartition
Sourcepub fn new(
batch_rows: u32,
stable_attribute: AttributeId,
) -> Result<Self, Diagnostic>
pub fn new( batch_rows: u32, stable_attribute: AttributeId, ) -> Result<Self, Diagnostic>
Construct a bounded deterministic partition contract.
Sourcepub const fn batch_rows(&self) -> u32
pub const fn batch_rows(&self) -> u32
Return the maximum rows in one transaction group.
Sourcepub const fn stable_attribute(&self) -> &AttributeId
pub const fn stable_attribute(&self) -> &AttributeId
Return the exact historical attribute used for stable partition order.
Trait Implementations§
Source§impl Clone for BackfillPartition
impl Clone for BackfillPartition
Source§fn clone(&self) -> BackfillPartition
fn clone(&self) -> BackfillPartition
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 BackfillPartition
impl Debug for BackfillPartition
impl Eq for BackfillPartition
Source§impl PartialEq for BackfillPartition
impl PartialEq for BackfillPartition
Source§impl Serialize for BackfillPartition
impl Serialize for BackfillPartition
impl StructuralPartialEq for BackfillPartition
Auto Trait Implementations§
impl Freeze for BackfillPartition
impl RefUnwindSafe for BackfillPartition
impl Send for BackfillPartition
impl Sync for BackfillPartition
impl Unpin for BackfillPartition
impl UnsafeUnpin for BackfillPartition
impl UnwindSafe for BackfillPartition
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