pub struct RowData {
pub sql_type: Arc<SqlTypeDefinition>,
pub min: TransactionId,
pub max: Option<TransactionId>,
pub item_pointer: ItemPointer,
pub user_data: SqlTuple,
}Expand description
Holds information about a particular row in a table as well as metadata.
Fields§
§sql_type: Arc<SqlTypeDefinition>Type that defines the row
min: TransactionIdLowest transaction this row is valid for (still need to check that transaction’s status)
max: Option<TransactionId>Max transaction this row is valid for OR None for still valid (still need to check max’s status)
item_pointer: ItemPointerPage + Offset where this row is stored on disk
user_data: SqlTupleColumns stored in this row
Implementations§
Source§impl RowData
impl RowData
pub fn new( sql_type: Arc<SqlTypeDefinition>, min: TransactionId, max: Option<TransactionId>, item_pointer: ItemPointer, user_data: SqlTuple, ) -> RowData
pub fn get_column( &self, name: &str, ) -> Result<Option<BaseSqlTypes>, RowDataError>
pub fn get_column_not_null( &self, name: &str, ) -> Result<BaseSqlTypes, RowDataError>
pub fn parse( table: Arc<Table>, row_buffer: &mut impl Buf, ) -> Result<RowData, RowDataError>
Trait Implementations§
Source§impl EncodedSize<&SqlTuple> for RowData
impl EncodedSize<&SqlTuple> for RowData
fn encoded_size(input: &SqlTuple) -> usize
impl StructuralPartialEq for RowData
Auto Trait Implementations§
impl Freeze for RowData
impl RefUnwindSafe for RowData
impl Send for RowData
impl Sync for RowData
impl Unpin for RowData
impl UnwindSafe for RowData
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