pub struct QueryMetadata {
pub execution_time: Duration,
pub rows_returned: usize,
pub total_rows_available: Option<usize>,
pub from_cache: bool,
pub source_files: Vec<PathBuf>,
pub bytes_read: u64,
pub cache_hit_ratio: f64,
}Expand description
Query execution metadata
Fields§
§execution_time: DurationTotal execution time
rows_returned: usizeNumber of rows returned
total_rows_available: Option<usize>Total rows available (before limit)
from_cache: boolWhether result was cached
source_files: Vec<PathBuf>Source SSTable files accessed
bytes_read: u64Data size read in bytes
cache_hit_ratio: f64Cache hit ratio for this query
Trait Implementations§
Source§impl Clone for QueryMetadata
impl Clone for QueryMetadata
Source§fn clone(&self) -> QueryMetadata
fn clone(&self) -> QueryMetadata
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 QueryMetadata
impl Debug for QueryMetadata
Source§impl<'de> Deserialize<'de> for QueryMetadata
impl<'de> Deserialize<'de> for QueryMetadata
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 QueryMetadata
impl RefUnwindSafe for QueryMetadata
impl Send for QueryMetadata
impl Sync for QueryMetadata
impl Unpin for QueryMetadata
impl UnsafeUnpin for QueryMetadata
impl UnwindSafe for QueryMetadata
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
Mutably borrows from an owned value. Read more