pub struct SeriesRef {
pub id: u64,
pub offset: u64,
pub labels: Vec<(Arc<str>, Arc<str>)>,
pub chunks: Vec<ChunkMeta>,
}Expand description
One series: its label set and the chunks that hold its samples.
Despite the name this is an owned record, not a reference into the file:
label strings are resolved through the symbol table once, then shared as
Arc<str> so a caller can keep them after the iterator moves on.
Fields§
§id: u64Reference as stored in the index (v2/v3: byte offset / 16). This is the same value tombstones use to identify a series.
offset: u64Byte offset of the series record in the index file.
labels: Vec<(Arc<str>, Arc<str>)>Labels in lexicographic order, exactly as stored in the index.
chunks: Vec<ChunkMeta>Chunks in ascending time order.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Forget for SeriesRef
impl Freeze for SeriesRef
impl Move for SeriesRef
impl RefUnwindSafe for SeriesRef
impl Send for SeriesRef
impl Sync for SeriesRef
impl Unpin for SeriesRef
impl UnsafeUnpin for SeriesRefwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<(Arc<str>, Arc<str>)>: UnsafeUnpin,
PhantomData<ChunkMeta>: UnsafeUnpin,
impl UnwindSafe for SeriesRef
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