pub struct SsTable {
pub generation: u64,
pub path: String,
pub in_memory_bytes: Option<u64>,
pub physical_rows: Option<u64>,
pub primary_key_bytes: Option<u64>,
}Expand description
An SSTable: the immutable result of flushing a MemTable, stored as a Lance dataset.
Fields§
§generation: u64§path: String§in_memory_bytes: Option<u64>Payload size of the rows, as the writer’s MemTable accounted for them.
An estimate of the payload, not a bound on what reading the SSTable costs: it excludes the per-array structure a reader materializes, so a consumer budgeting memory from it must add its own headroom.
None on an SSTable written before these fields existed, which a reader
must carry as unmeasured rather than as zero. The same applies to the two
below.
physical_rows: Option<u64>Rows held, counting the older duplicates of a primary key that the generation’s deletion vector masks.
primary_key_bytes: Option<u64>Total payload size of the primary-key columns over every row in
Self::physical_rows – not a per-row size, which varies for a
variable-length key. Carries the same estimate caveat as
Self::in_memory_bytes, and is also None on a table with no primary
key.
Implementations§
Trait Implementations§
Source§impl DeepSizeOf for SsTable
impl DeepSizeOf for SsTable
fn deep_size_of_children(&self, __context: &mut Context) -> usize
fn deep_size_of(&self) -> usize
Source§impl<'de> Deserialize<'de> for SsTable
impl<'de> Deserialize<'de> for SsTable
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>,
impl Eq for SsTable
impl StructuralPartialEq for SsTable
Auto Trait Implementations§
impl Freeze for SsTable
impl RefUnwindSafe for SsTable
impl Send for SsTable
impl Sync for SsTable
impl Unpin for SsTable
impl UnsafeUnpin for SsTable
impl UnwindSafe for SsTable
Blanket Implementations§
impl<T> Allocation for T
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
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> ⓘ
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> ⓘ
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