pub struct ChunkStoreChunkStats {
pub num_chunks: u64,
pub total_size_bytes: u64,
pub num_rows: u64,
pub num_events: u64,
}
Expand description
Stats about a collection of chunks.
Each chunk contains data for only one entity.
Each chunk has data for either zero timelines (static chunk) or multiple timelines (temporal chunk). A temporal chunk has dense timelines.
Each chunk can contain multiple components (columns).
Fields§
§num_chunks: u64
The number of chunks this is the stats for.
total_size_bytes: u64
Includes everything: arrow payloads, timelines, rowids, and chunk overhead.
This is an approximation of the actual storage cost of an entity, as the measurement includes the overhead of various data structures we use in the database. It is imprecise, because it does not account for every possible place someone may be storing something related to the entity, only most of what is accessible inside this chunk store.
num_rows: u64
Number of rows.
This is usually the same as the number of log calls the user made.
Each row can contain multiple events (see Self::num_events
).
num_events: u64
How many component batches (“cells”).
Implementations§
Source§impl ChunkStoreChunkStats
impl ChunkStoreChunkStats
pub fn from_chunk(chunk: &Arc<Chunk>) -> Self
Trait Implementations§
Source§impl Add for ChunkStoreChunkStats
impl Add for ChunkStoreChunkStats
Source§impl AddAssign for ChunkStoreChunkStats
impl AddAssign for ChunkStoreChunkStats
Source§fn add_assign(&mut self, rhs: Self)
fn add_assign(&mut self, rhs: Self)
+=
operation. Read moreSource§impl Clone for ChunkStoreChunkStats
impl Clone for ChunkStoreChunkStats
Source§fn clone(&self) -> ChunkStoreChunkStats
fn clone(&self) -> ChunkStoreChunkStats
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for ChunkStoreChunkStats
impl Debug for ChunkStoreChunkStats
Source§impl Default for ChunkStoreChunkStats
impl Default for ChunkStoreChunkStats
Source§fn default() -> ChunkStoreChunkStats
fn default() -> ChunkStoreChunkStats
Source§impl Display for ChunkStoreChunkStats
impl Display for ChunkStoreChunkStats
Source§impl Sub for ChunkStoreChunkStats
impl Sub for ChunkStoreChunkStats
Source§impl SubAssign for ChunkStoreChunkStats
impl SubAssign for ChunkStoreChunkStats
Source§fn sub_assign(&mut self, rhs: Self)
fn sub_assign(&mut self, rhs: Self)
-=
operation. Read moreSource§impl Sum for ChunkStoreChunkStats
impl Sum for ChunkStoreChunkStats
impl Copy for ChunkStoreChunkStats
Auto Trait Implementations§
impl Freeze for ChunkStoreChunkStats
impl RefUnwindSafe for ChunkStoreChunkStats
impl Send for ChunkStoreChunkStats
impl Sync for ChunkStoreChunkStats
impl Unpin for ChunkStoreChunkStats
impl UnwindSafe for ChunkStoreChunkStats
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> CheckedAs for T
impl<T> CheckedAs for T
Source§fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
Source§impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
Source§fn checked_cast_from(src: Src) -> Option<Dst>
fn checked_cast_from(src: Src) -> Option<Dst>
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