pub struct Row {
pub row_id: RowId,
pub committed_epoch: Epoch,
pub columns: HashMap<u16, Value>,
pub deleted: bool,
pub commit_ts: Option<HlcTimestamp>,
}Expand description
One logical row held in the memtable. A deleted row is a tombstone.
Field order of the bincode WAL Put payload is fixed as
(row_id, committed_epoch, columns, deleted) — the 0.63.1 layout.
Self::commit_ts is in-memory only (#[serde(skip)]); durable HLC for
WAL recovery is Op::CommitTimestamp, and sorted runs use the
SYS_COMMIT_TS system column (with its own legacy-compatible path).
Fields§
§row_id: RowId§committed_epoch: Epoch§columns: HashMap<u16, Value>§deleted: bool§commit_ts: Option<HlcTimestamp>Optional HLC stamp (P0.5 dual-model). Not encoded in WAL Put bincode
payloads — see struct-level docs. Kept last so call sites and future
wire evolution treat the 0.63.1 fields as the stable prefix.
Implementations§
Source§impl Row
impl Row
pub fn new(row_id: RowId, committed_epoch: Epoch) -> Self
pub fn new_with_hlc( row_id: RowId, committed_epoch: Epoch, commit_ts: HlcTimestamp, ) -> Self
pub fn with_column(self, column_id: u16, value: Value) -> Self
Sourcepub fn estimated_bytes(&self) -> u64
pub fn estimated_bytes(&self) -> u64
Rough byte estimate for flush-threshold decisions.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Row
impl<'de> Deserialize<'de> for Row
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for Row
impl RefUnwindSafe for Row
impl Send for Row
impl Sync for Row
impl Unpin for Row
impl UnsafeUnpin for Row
impl UnwindSafe for Row
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
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 moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
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