pub struct PageTable { /* private fields */ }
Expand description
Page lookup table.
Implementations§
source§impl PageTable
impl PageTable
sourcepub async fn load<'a>(
reader: &dyn ObjectReader,
position: usize,
num_columns: i32,
num_batches: i32
) -> Result<Self>
pub async fn load<'a>(
reader: &dyn ObjectReader,
position: usize,
num_columns: i32,
num_batches: i32
) -> Result<Self>
Load PageTable from disk.
pub async fn write(&self, writer: &mut ObjectWriter) -> Result<usize>
sourcepub fn set(&mut self, column: i32, batch: i32, page_info: PageInfo)
pub fn set(&mut self, column: i32, batch: i32, page_info: PageInfo)
Set page lookup info for a page identified by (column, batch)
pair.