pub struct ColumnMetadata {
pub name: String,
pub column_type: ColumnType,
pub column_index: usize,
pub value_size: usize,
pub kind: ColumnKind,
pub relative_path: String,
}Fields§
§name: String§column_type: ColumnType§column_index: usize§value_size: usizeBytes per row for a fixed column; 0 for a variable column (its width
lives in the offsets file). Lets backup compute a fixed column’s exact
committed length as row_count * value_size without guessing.
kind: ColumnKindFixed vs. variable — selects how a reader bounds the column’s files.
relative_path: StringColumn file path relative to the model directory (e.g.
fixed/u32_0.bin or variable/string_data_1.bin). For a variable
column this is the data file; the offsets file is the same path with
_data.bin → _offsets.bin (the storage-layout convention stats.rs
already relies on).
Trait Implementations§
Source§impl Clone for ColumnMetadata
impl Clone for ColumnMetadata
Source§fn clone(&self) -> ColumnMetadata
fn clone(&self) -> ColumnMetadata
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ColumnMetadata
impl Debug for ColumnMetadata
Source§impl Default for ColumnMetadata
impl Default for ColumnMetadata
Source§fn default() -> ColumnMetadata
fn default() -> ColumnMetadata
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ColumnMetadata
impl<'de> Deserialize<'de> for ColumnMetadata
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ColumnMetadata, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ColumnMetadata, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for ColumnMetadata
impl Serialize for ColumnMetadata
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for ColumnMetadata
impl RefUnwindSafe for ColumnMetadata
impl Send for ColumnMetadata
impl Sync for ColumnMetadata
impl Unpin for ColumnMetadata
impl UnsafeUnpin for ColumnMetadata
impl UnwindSafe for ColumnMetadata
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