pub struct BloomReadSet { /* private fields */ }Unused; SSI lives in ssi/MvccManager. Scheduled for removal (Task 2 consolidation).
Expand description
Bloom filter for approximate read set
Uses k hash functions for O(k) operations with configurable false positive rate.
Implementations§
Source§impl BloomReadSet
impl BloomReadSet
Sourcepub fn new(expected_items: usize, false_positive_rate: f64) -> Self
👎Deprecated: Unused; SSI lives in ssi/MvccManager. Scheduled for removal (Task 2 consolidation).
pub fn new(expected_items: usize, false_positive_rate: f64) -> Self
Unused; SSI lives in ssi/MvccManager. Scheduled for removal (Task 2 consolidation).
Create a new bloom filter
Size is calculated for target false positive rate: m = -n * ln(p) / (ln(2))^2 k = m/n * ln(2)
Sourcepub fn add(&mut self, key: &[u8])
👎Deprecated: Unused; SSI lives in ssi/MvccManager. Scheduled for removal (Task 2 consolidation).
pub fn add(&mut self, key: &[u8])
Unused; SSI lives in ssi/MvccManager. Scheduled for removal (Task 2 consolidation).
Add a key to the read set
Sourcepub fn might_contain(&self, key: &[u8]) -> bool
👎Deprecated: Unused; SSI lives in ssi/MvccManager. Scheduled for removal (Task 2 consolidation).
pub fn might_contain(&self, key: &[u8]) -> bool
Unused; SSI lives in ssi/MvccManager. Scheduled for removal (Task 2 consolidation).
Check if a key might be in the read set
Returns:
- false: key is definitely NOT in set
- true: key MIGHT be in set (or false positive)
Sourcepub fn estimated_false_positive_rate(&self) -> f64
👎Deprecated: Unused; SSI lives in ssi/MvccManager. Scheduled for removal (Task 2 consolidation).
pub fn estimated_false_positive_rate(&self) -> f64
Unused; SSI lives in ssi/MvccManager. Scheduled for removal (Task 2 consolidation).
Estimated false positive rate
Sourcepub fn count(&self) -> usize
👎Deprecated: Unused; SSI lives in ssi/MvccManager. Scheduled for removal (Task 2 consolidation).
pub fn count(&self) -> usize
Unused; SSI lives in ssi/MvccManager. Scheduled for removal (Task 2 consolidation).
Number of items added
Sourcepub fn memory_bytes(&self) -> usize
👎Deprecated: Unused; SSI lives in ssi/MvccManager. Scheduled for removal (Task 2 consolidation).
pub fn memory_bytes(&self) -> usize
Unused; SSI lives in ssi/MvccManager. Scheduled for removal (Task 2 consolidation).
Memory usage in bytes
Auto Trait Implementations§
impl Freeze for BloomReadSet
impl RefUnwindSafe for BloomReadSet
impl Send for BloomReadSet
impl Sync for BloomReadSet
impl Unpin for BloomReadSet
impl UnsafeUnpin for BloomReadSet
impl UnwindSafe for BloomReadSet
Blanket Implementations§
impl<T> Allocation for T
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> 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