pub struct StoreWriter<'a> { /* private fields */ }Expand description
Document store writer with optional dictionary compression
Implementations§
Source§impl<'a> StoreWriter<'a>
impl<'a> StoreWriter<'a>
Sourcepub fn with_compression_level(
writer: &'a mut dyn Write,
compression_level: CompressionLevel,
) -> Self
pub fn with_compression_level( writer: &'a mut dyn Write, compression_level: CompressionLevel, ) -> Self
Create a new store writer with a specific compression level
Sourcepub fn with_dict(writer: &'a mut dyn Write, dict: CompressionDict) -> Self
pub fn with_dict(writer: &'a mut dyn Write, dict: CompressionDict) -> Self
Create a new store writer with a trained dictionary
Sourcepub fn with_dict_and_level(
writer: &'a mut dyn Write,
dict: CompressionDict,
compression_level: CompressionLevel,
) -> Self
pub fn with_dict_and_level( writer: &'a mut dyn Write, dict: CompressionDict, compression_level: CompressionLevel, ) -> Self
Create a new store writer with a trained dictionary and specific compression level
pub fn store(&mut self, doc: &Document, schema: &Schema) -> Result<DocId>
pub fn finish(self) -> Result<u32>
Auto Trait Implementations§
impl<'a> Freeze for StoreWriter<'a>
impl<'a> !RefUnwindSafe for StoreWriter<'a>
impl<'a> !Send for StoreWriter<'a>
impl<'a> !Sync for StoreWriter<'a>
impl<'a> Unpin for StoreWriter<'a>
impl<'a> !UnwindSafe for StoreWriter<'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