Struct lance_core::format::Manifest
source · pub struct Manifest {
pub schema: Schema,
pub version: u64,
pub fragments: Arc<Vec<Fragment>>,
pub version_aux_data: usize,
pub index_section: Option<usize>,
pub timestamp_nanos: u128,
pub tag: Option<String>,
pub reader_feature_flags: u64,
pub writer_feature_flags: u64,
pub max_fragment_id: u32,
pub transaction_file: Option<String>,
}Expand description
Manifest of a dataset
- Schema
- Version
- Fragments.
- Indices.
Fields§
§schema: SchemaDataset schema.
version: u64Dataset version
fragments: Arc<Vec<Fragment>>Fragments, the pieces to build the dataset.
version_aux_data: usizeThe file position of the version aux data.
index_section: Option<usize>The file position of the index metadata.
timestamp_nanos: u128The creation timestamp with nanosecond resolution as 128-bit integer
tag: Option<String>An optional string tag for this version
reader_feature_flags: u64The reader flags
writer_feature_flags: u64The writer flags
max_fragment_id: u32The max fragment id used so far
transaction_file: Option<String>The path to the transaction file, relative to the root of the dataset
Implementations§
source§impl Manifest
impl Manifest
pub fn new(schema: &Schema, fragments: Arc<Vec<Fragment>>) -> Self
pub fn new_from_previous( previous: &Self, schema: &Schema, fragments: Arc<Vec<Fragment>> ) -> Self
sourcepub fn set_timestamp(&mut self, nanos: u128)
pub fn set_timestamp(&mut self, nanos: u128)
Set the timestamp_nanos value from a Utc DateTime
sourcepub fn update_max_fragment_id(&mut self)
pub fn update_max_fragment_id(&mut self)
Check the current fragment list and update the high water mark
sourcepub fn max_fragment_id(&self) -> Option<u64>
pub fn max_fragment_id(&self) -> Option<u64>
Return the max fragment id. Note this does not support recycling of fragment ids.
This will return None if there are no fragments.
Trait Implementations§
source§impl PartialEq for Manifest
impl PartialEq for Manifest
impl StructuralPartialEq for Manifest
Auto Trait Implementations§
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