pub struct ManifestWriter { /* private fields */ }
Expand description
A manifest writer.
Implementations§
Source§impl ManifestWriter
impl ManifestWriter
Sourcepub fn add_file(
&mut self,
data_file: DataFile,
sequence_number: i64,
) -> Result<()>
pub fn add_file( &mut self, data_file: DataFile, sequence_number: i64, ) -> Result<()>
Add file as an added entry with a specific sequence number. The entry’s snapshot ID will be this manifest’s snapshot ID. The entry’s data sequence number will be the provided data sequence number. The entry’s file sequence number will be assigned at commit.
Sourcepub fn add_delete_file(
&mut self,
data_file: DataFile,
sequence_number: i64,
file_sequence_number: Option<i64>,
) -> Result<()>
pub fn add_delete_file( &mut self, data_file: DataFile, sequence_number: i64, file_sequence_number: Option<i64>, ) -> Result<()>
Add a file as delete manifest entry. The entry’s snapshot ID will be this manifest’s snapshot ID. However, the original data and file sequence numbers of the file must be preserved when the file is marked as deleted.
Sourcepub fn add_existing_file(
&mut self,
data_file: DataFile,
snapshot_id: i64,
sequence_number: i64,
file_sequence_number: Option<i64>,
) -> Result<()>
pub fn add_existing_file( &mut self, data_file: DataFile, snapshot_id: i64, sequence_number: i64, file_sequence_number: Option<i64>, ) -> Result<()>
Add an file as existing manifest entry. The original data and file sequence numbers, snapshot ID, which were assigned at commit, must be preserved when adding an existing entry.
Sourcepub async fn write_manifest_file(self) -> Result<ManifestFile>
pub async fn write_manifest_file(self) -> Result<ManifestFile>
Write manifest file and return it.
Auto Trait Implementations§
impl Freeze for ManifestWriter
impl !RefUnwindSafe for ManifestWriter
impl Send for ManifestWriter
impl Sync for ManifestWriter
impl Unpin for ManifestWriter
impl !UnwindSafe for ManifestWriter
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<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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