pub struct RecordIndex { /* private fields */ }Expand description
记录起始字节偏移列表,由 LogParser::index() 一次性构建。
每个元素是某条记录在内存映射缓冲区内的绝对字节偏移。
用于两阶段并行扫描:先建索引,再按记录数均匀分区给多线程。
Implementations§
Auto Trait Implementations§
impl Freeze for RecordIndex
impl RefUnwindSafe for RecordIndex
impl Send for RecordIndex
impl Sync for RecordIndex
impl Unpin for RecordIndex
impl UnsafeUnpin for RecordIndex
impl UnwindSafe for RecordIndex
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
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>
Converts
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>
Converts
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