pub struct SegmentReport {
pub id: String,
pub lo: u64,
pub hi: u64,
pub bytes: u64,
pub state: SegmentState,
pub index: Option<IndexInfo>,
pub stray_indexes: Vec<u32>,
pub has_sparse_data: bool,
pub sparse_index: Option<SparseIndexInfo>,
pub stray_sparse_indexes: Vec<u32>,
}Expand description
One directory under segments/.
Fields§
§id: StringThe segment id, <lo>-<hi> (see segment).
lo: u64First WAL seq the segment covers.
hi: u64Last WAL seq the segment covers.
bytes: u64Total stored size of the objects in the directory.
state: SegmentStateWhether the manifest lists it, and if not, whether Namespace::gc
would take it.
index: Option<IndexInfo>The index the manifest names for this segment, if it names one.
stray_indexes: Vec<u32>Generations of index objects in the directory that the manifest does
not name, oldest first. Namespace::gc deletes
them of a live segment once they are old enough.
has_sparse_data: boolWhether the directory has a sparse.bin, so some document in the
segment carries a sparse vector.
sparse_index: Option<SparseIndexInfo>The sparse index the manifest names for this segment, if it names one.
stray_sparse_indexes: Vec<u32>Generations of sparse index objects in the directory that the manifest
does not name, oldest first. Namespace::gc
deletes them of a live segment once they are old enough.
Trait Implementations§
Source§impl Clone for SegmentReport
impl Clone for SegmentReport
Source§impl Debug for SegmentReport
impl Debug for SegmentReport
impl Eq for SegmentReport
Source§impl PartialEq for SegmentReport
impl PartialEq for SegmentReport
impl StructuralPartialEq for SegmentReport
Auto Trait Implementations§
impl Forget for SegmentReport
impl Freeze for SegmentReport
impl Move for SegmentReport
impl RefUnwindSafe for SegmentReport
impl Send for SegmentReportwhere
RawVecInner: Send,
impl Sync for SegmentReportwhere
RawVecInner: Sync,
impl Unpin for SegmentReport
impl UnsafeUnpin for SegmentReport
impl UnwindSafe for SegmentReportwhere
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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