Skip to main content

MetadataFileRef

Struct MetadataFileRef 

Source
pub struct MetadataFileRef {
Show 14 fields pub owner_namespace_id: NamespaceId, pub table_id: MetadataTableId, pub object_key: String, pub run_seq: ChangeSeq, pub level: u32, pub family: MetadataTableFamily, pub segment_index: u32, pub row_count: u64, pub min_key: String, pub max_key: String, pub index_block: BlockHandle, pub filter_block: BlockHandle, pub filter_inline: Option<String>, pub payload_checksum: String,
}
Expand description

Describes one immutable metadata SST object referenced by a namespace manifest.

See metadata segments.

Fields§

§owner_namespace_id: NamespaceId

Namespace whose keyspace owns the object, which may be a fork source rather than the reader.

§table_id: MetadataTableId

Immutable table identity incorporated into the object’s durable key.

§object_key: String

Fully resolved object-store key trusted only after descriptor validation.

§run_seq: ChangeSeq

Namespace sequence at which this run was produced.

§level: u32

Compaction tier used to order overlapping runs during reads and reorganization.

§family: MetadataTableFamily

Row schema and lookup ordering encoded in this segment.

§segment_index: u32

Zero-based shard position among segments emitted for the same family and run.

§row_count: u64

Number of row payloads in the segment, used for validation and planning.

§min_key: String

Inclusive least durable row key; the segment is corrupt if decoded rows disagree.

§max_key: String

Inclusive greatest durable row key; range planning skips disjoint segments.

§index_block: BlockHandle

Where the segment’s index block lives and how to verify it. The descriptor is the only entry point into a segment object — there is no footer — so a reader starts here.

§filter_block: BlockHandle

Where the segment’s bloom filter block lives and how to verify it.

§filter_inline: Option<String>

The filter block’s stored bytes inlined as hex, present when the filter is small (small delta runs). Point lookups consult it to skip the segment without any object fetch; filter_block still names and verifies the same bytes, so the inline copy must decode byte-for-byte identical (same length and CRC32C) or the manifest is corrupt.

§payload_checksum: String

Checksum of the segment object’s full bytes, in sha256:<hex> form. The ranged read path verifies per-block CRCs instead; this digest is the segment’s identity in the decoded-block cache.

Trait Implementations§

Source§

impl Clone for MetadataFileRef

Source§

fn clone(&self) -> MetadataFileRef

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 MetadataFileRef

Source§

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

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

impl<'de> Deserialize<'de> for MetadataFileRef

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl Eq for MetadataFileRef

Source§

impl PartialEq for MetadataFileRef

Source§

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

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

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

Inequality operator !=. Read more
Source§

impl Serialize for MetadataFileRef

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl StructuralPartialEq for MetadataFileRef

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> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

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> Same for T

Source§

type Output = T

Should always be Self
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.