pub struct BlockInfo {
pub path: PathBuf,
pub tenant: String,
pub remote: bool,
pub meta: BlockMeta,
pub index_bytes: u64,
pub chunks_bytes: u64,
pub tombstones_bytes: u64,
pub warnings: Vec<String>,
}Expand description
A discovered block: where it lives, what it claims, and how big it is.
Fields§
§path: PathBufLocal block directory (for remote sources this is the download cache).
tenant: StringMimir tenant; empty for a plain local data directory.
remote: boolTrue when the block came from an object store and was materialised locally.
meta: BlockMetaDecoded meta.json, or a caller-supplied equivalent.
index_bytes: u64Size of the index file in bytes.
chunks_bytes: u64Size of all chunks/ segment files in bytes.
tombstones_bytes: u64Size of the tombstones file in bytes, 0 when absent.
warnings: Vec<String>Non-fatal observations, e.g. overlapping time ranges.
Implementations§
Source§impl BlockInfo
impl BlockInfo
Sourcepub fn tenant_opt(&self) -> Option<&str>
pub fn tenant_opt(&self) -> Option<&str>
Tenant ID, or None for a plain local directory.
Sourcepub fn size_bytes(&self) -> u64
pub fn size_bytes(&self) -> u64
Sum of the index, chunk and tombstone sizes.
Trait Implementations§
Auto Trait Implementations§
impl Forget for BlockInfo
impl Freeze for BlockInfowhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<String>: Freeze,
PhantomData<ParentMeta>: Freeze,
impl Move for BlockInfo
impl RefUnwindSafe for BlockInfo
impl Send for BlockInfowhere
RawVecInner: Send,
impl Sync for BlockInfowhere
RawVecInner: Sync,
impl Unpin for BlockInfo
impl UnsafeUnpin for BlockInfowhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
PhantomData<ParentMeta>: UnsafeUnpin,
impl UnwindSafe for BlockInfowhere
RawVecInner: UnwindSafe,
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