pub struct ParallelStoreWriter<'a> { /* private fields */ }Expand description
Parallel document store writer - compresses blocks in parallel while maintaining order
Uses a thread pool to compress blocks concurrently. Blocks are written in sequence order to maintain correct document ordering in the output file.
Implementations§
Source§impl<'a> ParallelStoreWriter<'a>
impl<'a> ParallelStoreWriter<'a>
Sourcepub fn new(writer: &'a mut dyn Write, num_threads: usize) -> Self
pub fn new(writer: &'a mut dyn Write, num_threads: usize) -> Self
Create a new parallel store writer
Sourcepub fn with_dict(
writer: &'a mut dyn Write,
dict: CompressionDict,
num_threads: usize,
) -> Self
pub fn with_dict( writer: &'a mut dyn Write, dict: CompressionDict, num_threads: usize, ) -> Self
Create with dictionary
pub fn store(&mut self, doc: &Document, schema: &Schema) -> Result<DocId>
pub fn finish(self) -> Result<u32>
Auto Trait Implementations§
impl<'a> Freeze for ParallelStoreWriter<'a>
impl<'a> !RefUnwindSafe for ParallelStoreWriter<'a>
impl<'a> !Send for ParallelStoreWriter<'a>
impl<'a> !Sync for ParallelStoreWriter<'a>
impl<'a> Unpin for ParallelStoreWriter<'a>
impl<'a> !UnwindSafe for ParallelStoreWriter<'a>
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