Struct lance_core::format::pb::Manifest
source · pub struct Manifest {
pub fields: Vec<Field>,
pub fragments: Vec<DataFragment>,
pub version: u64,
pub version_aux_data: u64,
pub metadata: HashMap<String, Vec<u8>>,
pub index_section: Option<u64>,
pub timestamp: Option<Timestamp>,
pub tag: String,
pub reader_feature_flags: u64,
pub writer_feature_flags: u64,
pub max_fragment_id: u32,
pub transaction_file: String,
}Expand description
Manifest is a global section shared between all the files.
Fields§
§fields: Vec<Field>All fields of the dataset, including the nested fields.
fragments: Vec<DataFragment>Fragments of the dataset.
version: u64Snapshot version number.
version_aux_data: u64The file position of the version auxiliary data.
- It is not inheritable between versions.
- It is not loaded by default during query.
metadata: HashMap<String, Vec<u8>>Schema metadata.
index_section: Option<u64>If presented, the file position of the index metadata.
timestamp: Option<Timestamp>Version creation Timestamp, UTC timezone
tag: StringOptional version tag
reader_feature_flags: u64Feature flags for readers.
A bitmap of flags that indicate which features are required to be able to read the table. If a reader does not recognize a flag that is set, it should not attempt to read the dataset.
Known flags:
- 1: deletion files are present
writer_feature_flags: u64Feature flags for writers.
A bitmap of flags that indicate which features are required to be able to write to the dataset. if a writer does not recognize a flag that is set, it should not attempt to write to the dataset.
The flags are the same as for reader_feature_flags, although they will not always apply to both.
max_fragment_id: u32The highest fragment ID that has been used so far.
This ID is not guaranteed to be present in the current version, but it may have been used in previous versions.
For a single file, will be zero.
transaction_file: StringPath to the transaction file, relative to {root}/_transactions
This contains a serialized Transaction message representing the transaction that created this version.
May be empty if no transaction file was written.
The path format is “{read_version}-{uuid}.txn” where {read_version} is the version of the table the transaction read from, and {uuid} is a hyphen-separated UUID.
Implementations§
Trait Implementations§
source§impl Message for Manifest
impl Message for Manifest
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
source§fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
source§fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn decode<B>(buf: B) -> Result<Self, DecodeError>
fn decode<B>(buf: B) -> Result<Self, DecodeError>
source§fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
source§fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
self. Read moresource§fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
self.