Struct rusty_leveldb::BloomPolicy
[−]
[src]
pub struct BloomPolicy { /* fields omitted */ }
A filter policy using a bloom filter internally.
Methods
impl BloomPolicy
[src]
Beware the magic numbers...
pub fn new(bits_per_key: u32) -> BloomPolicy
[src]
Returns a new boxed BloomPolicy.
Trait Implementations
impl Clone for BloomPolicy
[src]
fn clone(&self) -> BloomPolicy
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl FilterPolicy for BloomPolicy
[src]
fn name(&self) -> &'static str
[src]
Returns a string identifying this policy.
fn create_filter(&self, keys: &[u8], key_offsets: &[usize]) -> Vec<u8>
[src]
Create a filter matching the given keys. Keys are given as a long byte array that is indexed by the offsets contained in key_offsets. Read more
fn key_may_match(&self, key: &[u8], filter: &[u8]) -> bool
[src]
Check whether the given key may match the filter.