Struct lance_table::format::Manifest
source · pub struct Manifest {
pub schema: Schema,
pub version: u64,
pub writer_version: Option<WriterVersion>,
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>,
/* private fields */
}Expand description
Manifest of a dataset
- Schema
- Version
- Fragments.
- Indices.
Fields§
§schema: SchemaDataset schema.
version: u64Dataset version
writer_version: Option<WriterVersion>Version of the writer library that wrote this manifest.
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.
sourcepub fn fragments_since(&self, since: &Self) -> Result<Vec<Fragment>>
pub fn fragments_since(&self, since: &Self) -> Result<Vec<Fragment>>
Return the fragments that are newer than the given manifest. Note this does not support recycling of fragment ids.