pub struct ColumnFamilyStats {
pub average_cells_per_column: Option<f64>,
pub average_columns_per_row: Option<f64>,
pub logical_data_bytes: Option<i64>,
}
Expand description
Approximate statistics related to a single column family within a table. This information may change rapidly, interpreting these values at a point in time may already preset out-of-date information. Everything below is approximate, unless otherwise specified.
This type is not used in any activity, and only used as part of another schema.
Fields§
§average_cells_per_column: Option<f64>
How many cells are present per column qualifier in this column family, averaged over all rows containing any column in the column family. e.g. For column family “family” in a table with 3 rows: * A row with 3 cells in “family:col” and 1 cell in “other:col” (3 cells / 1 column in “family”) * A row with 1 cell in “family:col”, 7 cells in “family:other_col”, and 7 cells in “other:data” (8 cells / 2 columns in “family”) * A row with 3 cells in “other:col” (0 columns in “family”, “family” not present) would report (3 + 8 + 0)/(1 + 2 + 0) = 3.66 in this field.
average_columns_per_row: Option<f64>
How many column qualifiers are present in this column family, averaged over all rows in the table. e.g. For column family “family” in a table with 3 rows: * A row with cells in “family:col” and “other:col” (1 column in “family”) * A row with cells in “family:col”, “family:other_col”, and “other:data” (2 columns in “family”) * A row with cells in “other:col” (0 columns in “family”, “family” not present) would report (1 + 2 + 0)/3 = 1.5 in this field.
logical_data_bytes: Option<i64>
How much space the data in the column family occupies. This is roughly how many bytes would be needed to read the contents of the entire column family (e.g. by streaming all contents out).
Trait Implementations§
Source§impl Clone for ColumnFamilyStats
impl Clone for ColumnFamilyStats
Source§fn clone(&self) -> ColumnFamilyStats
fn clone(&self) -> ColumnFamilyStats
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for ColumnFamilyStats
impl Debug for ColumnFamilyStats
Source§impl Default for ColumnFamilyStats
impl Default for ColumnFamilyStats
Source§fn default() -> ColumnFamilyStats
fn default() -> ColumnFamilyStats
Source§impl<'de> Deserialize<'de> for ColumnFamilyStats
impl<'de> Deserialize<'de> for ColumnFamilyStats
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>,
Source§impl Serialize for ColumnFamilyStats
impl Serialize for ColumnFamilyStats
impl Part for ColumnFamilyStats
Auto Trait Implementations§
impl Freeze for ColumnFamilyStats
impl RefUnwindSafe for ColumnFamilyStats
impl Send for ColumnFamilyStats
impl Sync for ColumnFamilyStats
impl Unpin for ColumnFamilyStats
impl UnwindSafe for ColumnFamilyStats
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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