pub struct Metadata {
pub batch_offsets: Vec<i32>,
pub page_table_position: usize,
pub manifest_position: Option<usize>,
}
Expand description
Data File Metadata
Fields§
§batch_offsets: Vec<i32>
Offset of each record batch.
page_table_position: usize
The file position of the page table in the file.
manifest_position: Option<usize>
The file position of the manifest block in the file.
Implementations§
source§impl Metadata
impl Metadata
sourcepub fn num_batches(&self) -> usize
pub fn num_batches(&self) -> usize
Get the number of batches in this file.
pub fn is_empty(&self) -> bool
sourcepub fn push_batch_length(&mut self, batch_len: i32)
pub fn push_batch_length(&mut self, batch_len: i32)
Push the length of the batch.
sourcepub fn get_offset(&self, batch_id: i32) -> Option<i32>
pub fn get_offset(&self, batch_id: i32) -> Option<i32>
Get the starting offset of the batch.