pub struct CheckPointBuilder { /* private fields */ }
Expand description
Builder for CheckPoint
Implementations§
Source§impl CheckPointBuilder
impl CheckPointBuilder
Sourcepub fn new(version: i64, size: i64) -> Self
pub fn new(version: i64, size: i64) -> Self
Creates a new CheckPointBuilder
instance with the provided version
and size
.
Size is the total number of actions in the checkpoint. See size_in_bytes for total size in bytes.
Sourcepub fn with_parts(self, parts: u32) -> Self
pub fn with_parts(self, parts: u32) -> Self
The number of fragments if the last checkpoint was written in multiple parts. This field is optional.
Sourcepub fn with_size_in_bytes(self, size_in_bytes: i64) -> Self
pub fn with_size_in_bytes(self, size_in_bytes: i64) -> Self
The number of bytes of the checkpoint. This field is optional.
Sourcepub fn with_num_of_add_files(self, num_of_add_files: i64) -> Self
pub fn with_num_of_add_files(self, num_of_add_files: i64) -> Self
The number of AddFile actions in the checkpoint. This field is optional.
Sourcepub fn build(self) -> CheckPoint
pub fn build(self) -> CheckPoint
Build the final CheckPoint
struct.
Trait Implementations§
Source§impl Default for CheckPointBuilder
impl Default for CheckPointBuilder
Source§fn default() -> CheckPointBuilder
fn default() -> CheckPointBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for CheckPointBuilder
impl RefUnwindSafe for CheckPointBuilder
impl Send for CheckPointBuilder
impl Sync for CheckPointBuilder
impl Unpin for CheckPointBuilder
impl UnwindSafe for CheckPointBuilder
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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>
Converts
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>
Converts
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