Struct simple_db_rust::btree::page::BTreeLeafPage [−][src]
pub struct BTreeLeafPage {
pub slot_count: usize,
pub tuple_scheme: TupleScheme,
// some fields omitted
}
Fields
slot_count: usize
tuple_scheme: TupleScheme
Implementations
pub fn new(
page_id: &BTreePageID,
bytes: Vec<u8>,
tuple_scheme: &TupleScheme,
key_field: usize
) -> Self
Retrieve the maximum number of tuples this page can hold.
Returns the number of tuples currently stored on this page
Adds the specified tuple to the page such that all records remain in sorted order; the tuple should be updated to reflect that it is now stored on this page. tuple: The tuple to add.
Returns true if associated slot on this page is filled.