pub struct Manifest { /* private fields */ }Expand description
Manifest ring buffer
Implementations§
Source§impl Manifest
impl Manifest
Sourcepub fn open(path: impl AsRef<Path>, region: Region) -> Result<Self>
pub fn open(path: impl AsRef<Path>, region: Region) -> Result<Self>
Open existing manifest and recover state
Sourcepub fn append(&self, record: ManifestRecord) -> Result<ManifestSeq>
pub fn append(&self, record: ManifestRecord) -> Result<ManifestSeq>
Append a manifest record
Sourcepub fn state(&self) -> ManifestState
pub fn state(&self) -> ManifestState
Get current manifest state
Sourcepub fn get_sst(&self, sst_id: u64) -> Option<SstMetadata>
pub fn get_sst(&self, sst_id: u64) -> Option<SstMetadata>
Get SST metadata
Sourcepub fn update_schema(&self, schema: TableSchema) -> Result<ManifestSeq>
pub fn update_schema(&self, schema: TableSchema) -> Result<ManifestSeq>
Update table schema (Phase 3.1+)
Sourcepub fn get_schema(&self) -> TableSchema
pub fn get_schema(&self) -> TableSchema
Get current table schema (Phase 3.1+)
Auto Trait Implementations§
impl Freeze for Manifest
impl !RefUnwindSafe for Manifest
impl Send for Manifest
impl Sync for Manifest
impl Unpin for Manifest
impl !UnwindSafe for Manifest
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