pub struct SegmentBuilderConfig {
pub temp_dir: PathBuf,
pub compression_level: CompressionLevel,
pub num_compression_threads: usize,
pub interner_capacity: usize,
pub posting_map_capacity: usize,
pub optimization: IndexOptimization,
pub posting_codec: PostingCodec,
pub quantized_norms: bool,
pub compact_text: bool,
pub posting_ratio_bounds: bool,
pub posting_impact_bounds: bool,
pub term_dict_block_size: SSTableBlockSize,
}Expand description
Configuration for segment builder
Fields§
§temp_dir: PathBufDirectory for temporary spill files
compression_level: CompressionLevelCompression level for document store
num_compression_threads: usizeWidth of the document-store compression pool. Concurrent builders with the same width share one process-wide executor.
interner_capacity: usizeInitial capacity for term interner
posting_map_capacity: usizeInitial capacity for posting lists hashmap
optimization: IndexOptimizationTerm-dictionary compression / bloom configuration (from the index optimization mode).
posting_codec: PostingCodecPosting block codec (docs/posting-codecs.md).
quantized_norms: boolNew plain-text columns use versioned byte4 norms. Existing segments retain their scores.
compact_text: boolNew position streams use a compact directory separate from payload pages.
posting_ratio_bounds: boolOpt in to compact, score-independent length/TF block bounds.
posting_impact_bounds: boolOpt in to bounded competitive frequency/length envelopes. Implies ratio bounds.
term_dict_block_size: SSTableBlockSizeValidated flush target for this segment’s term dictionary.
Implementations§
Source§impl SegmentBuilderConfig
impl SegmentBuilderConfig
Sourcepub fn effective_posting_bounds(&self) -> PostingBounds
pub fn effective_posting_bounds(&self) -> PostingBounds
Block-bound metadata this builder writes; impact bounds imply ratio bounds.
Trait Implementations§
Source§impl Clone for SegmentBuilderConfig
impl Clone for SegmentBuilderConfig
Auto Trait Implementations§
impl Freeze for SegmentBuilderConfig
impl RefUnwindSafe for SegmentBuilderConfig
impl Send for SegmentBuilderConfig
impl Sync for SegmentBuilderConfig
impl Unpin for SegmentBuilderConfig
impl UnsafeUnpin for SegmentBuilderConfig
impl UnwindSafe for SegmentBuilderConfig
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> DropFlavorWrapper<T> for T
impl<T> DropFlavorWrapper<T> for T
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T, W> HasTypeWitness<W> for Twhere
W: MakeTypeWitness<Arg = T>,
T: ?Sized,
impl<T, W> HasTypeWitness<W> for Twhere
W: MakeTypeWitness<Arg = T>,
T: ?Sized,
Source§impl<T> Identity for Twhere
T: ?Sized,
impl<T> Identity for Twhere
T: ?Sized,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
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