pub struct BTreeBasePage { /* private fields */ }Implementations§
Source§impl BTreeBasePage
impl BTreeBasePage
pub fn new(pid: &BTreePageID) -> BTreeBasePage
Sourcepub fn empty_page_data() -> Vec<u8> ⓘ
pub fn empty_page_data() -> Vec<u8> ⓘ
Static method to generate a byte array corresponding to an empty BTreePage.
Used to add new, empty pages to the file.
Passing the results of this method to the following constructors will create a BTreePage with no valid entries in it.
BTreeInternalPageBTreeLeafPage
pub fn is_empty_page(bytes: &[u8]) -> bool
Trait Implementations§
Source§impl BTreePage for BTreeBasePage
impl BTreePage for BTreeBasePage
fn new( pid: &BTreePageID, _bytes: &[u8], _tuple_scheme: &Schema, _key_field: usize, ) -> Self
fn get_pid(&self) -> BTreePageID
fn get_parent_pid(&self) -> BTreePageID
fn set_parent_pid(&mut self, pid: &BTreePageID)
Source§fn get_page_data(&self) -> Vec<u8> ⓘ
fn get_page_data(&self) -> Vec<u8> ⓘ
Generates a byte array representing the contents of this page.
Used to serialize this page to disk. Read more
fn set_before_image(&mut self)
Source§fn get_before_image(&self) -> Vec<u8> ⓘ
fn get_before_image(&self) -> Vec<u8> ⓘ
Provide a representation of this page before any modifications
were made to it. Used by recovery.
fn peek(&self)
Auto Trait Implementations§
impl Freeze for BTreeBasePage
impl RefUnwindSafe for BTreeBasePage
impl Send for BTreeBasePage
impl Sync for BTreeBasePage
impl Unpin for BTreeBasePage
impl UnwindSafe for BTreeBasePage
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