Skip to main content

PhysicalRow

Struct PhysicalRow 

Source
pub struct PhysicalRow { /* private fields */ }
Expand description

A physical row owns no column names. Each fragment is created by a scan or projection and shared thereafter; joining rows copies only Arc handles.

Implementations§

Source§

impl PhysicalRow

Source

pub fn into_physical_values(self) -> Vec<Value>

Consume an owned row at a positional state boundary, moving uniquely owned fragments and cloning only shared or multiply referenced values.

Source§

impl PhysicalRow

Source

pub fn with_lock_origin(self, origin: RowLockOrigin) -> Self

Source

pub fn with_lock_origins( self, origins: impl IntoIterator<Item = RowLockOrigin>, ) -> Self

Source

pub fn lock_origins(&self) -> &[RowLockOrigin]

Source

pub fn without_lock_origins(self) -> Self

Drop row-lock lineage at an execution boundary that cannot expose a lockable base-row identity, such as a set operation.

Source

pub fn discard_lock_origins_mut(&mut self)

Remove all row-lock identities without reallocating the row payload.

Source

pub fn rebind_lock_origin_qualifiers( self, qualifier: impl Into<Arc<str>>, ) -> Self

Point every lock origin at the visible source qualifier. Views, CTEs, and subqueries keep inner storage names so FOR UPDATE OF that alias locks only those origins after a join.

Source

pub fn rebind_lock_origin_qualifiers_mut(&mut self, qualifier: Arc<str>)

Source§

impl PhysicalRow

Source

pub fn from_values(values: Vec<Value>) -> Self

Source

pub fn from_shared_values( values: Arc<Vec<Value>>, projection: Arc<[usize]>, ) -> Self

Build a row by sharing a stored positional value vector and applying a fragment-local slot projection. Neither the values nor contained strings are cloned.

Source

pub fn from_result_row(schema: &RowSchema, row: ResultRow) -> Self

Source

pub fn nulls(width: usize) -> Self

Source

pub fn append_values(self, values: Vec<Value>) -> Self

Source

pub fn concat(left: &Self, right: &Self) -> Self

Source

pub fn concat_left_owned(left: Self, right: &Self) -> Self

Source

pub fn concat_right_owned(left: &Self, right: Self) -> Self

Source

pub fn project_with_values( &self, values: impl IntoIterator<Item = RowProjectionValue>, ) -> Self

Build an output row from shared input slots and newly computed values while preserving their requested order and sharing row metadata.

Source

pub fn fragment_count(&self) -> usize

Trait Implementations§

Source§

impl Clone for PhysicalRow

Source§

fn clone(&self) -> PhysicalRow

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for PhysicalRow

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for PhysicalRow

Source§

fn default() -> PhysicalRow

Returns the “default value” for a type. Read more
Source§

impl PartialEq for PhysicalRow

Source§

fn eq(&self, other: &PhysicalRow) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for PhysicalRow

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> ErasedDestructor for T
where T: 'static,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.