pub struct ZoneMapBuilder { /* private fields */ }Expand description
Incrementally builds a zone map entry as you add values.
Feed it values one at a time; it tracks min/max/nulls automatically.
By default, Bloom filters are enabled for efficient equality checks.
Use without_bloom_filter if you don’t need them.
Implementations§
Source§impl ZoneMapBuilder
impl ZoneMapBuilder
Sourcepub fn new() -> Self
pub fn new() -> Self
Creates a new zone map builder with Bloom filter enabled by default.
Uses reasonable defaults:
- Expected items: 2048 (typical chunk size)
- False positive rate: 1%
Sourcepub fn without_bloom_filter() -> Self
pub fn without_bloom_filter() -> Self
Creates a builder without Bloom filter support.
Use this when you know you won’t need equality checks, or when memory is constrained and the Bloom filter overhead isn’t worth it.
Sourcepub fn with_bloom_filter(
expected_items: usize,
false_positive_rate: f64,
) -> Self
pub fn with_bloom_filter( expected_items: usize, false_positive_rate: f64, ) -> Self
Creates a builder with custom Bloom filter settings.
§Arguments
expected_items- Expected number of items in the chunkfalse_positive_rate- Desired false positive rate (e.g., 0.01 for 1%)
Sourcepub fn build(self) -> ZoneMapEntry
pub fn build(self) -> ZoneMapEntry
Builds the zone map entry.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ZoneMapBuilder
impl RefUnwindSafe for ZoneMapBuilder
impl Send for ZoneMapBuilder
impl Sync for ZoneMapBuilder
impl Unpin for ZoneMapBuilder
impl UnwindSafe for ZoneMapBuilder
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