pub struct RowManager { /* private fields */ }Expand description
The row manager is a mapper between rows and pages on disk.
It operates at the lowest level, no visibility checks are done.
Implementations§
Source§impl RowManager
impl RowManager
pub fn new( file_manager: Arc<FileManager2>, free_space_manager: FreeSpaceManager, ) -> RowManager
pub async fn insert_row( &self, current_tran_id: TransactionId, table: &Arc<Table>, user_data: SqlTuple, ) -> Result<ItemPointer, RowManagerError>
pub async fn delete_row( &self, current_tran_id: TransactionId, table: &Arc<Table>, row_pointer: ItemPointer, ) -> Result<(), RowManagerError>
pub async fn update_row( &mut self, current_tran_id: TransactionId, table: &Arc<Table>, row_pointer: ItemPointer, new_user_data: SqlTuple, ) -> Result<ItemPointer, RowManagerError>
pub async fn get( &self, table: &Arc<Table>, row_pointer: ItemPointer, ) -> Result<RowData, RowManagerError>
pub fn get_stream( &self, table: &Arc<Table>, ) -> impl Stream<Item = Result<RowData, RowManagerError>>
Trait Implementations§
Source§impl Clone for RowManager
impl Clone for RowManager
Source§fn clone(&self) -> RowManager
fn clone(&self) -> RowManager
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for RowManager
impl !RefUnwindSafe for RowManager
impl Send for RowManager
impl Sync for RowManager
impl Unpin for RowManager
impl !UnwindSafe for RowManager
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