Skip to main content

Blocker

Trait Blocker 

Source
pub trait Blocker: Send + Sync {
    // Required methods
    fn blocking_keys(&self, record: &Record, schema: &Schema) -> Vec<String>;
    fn index_record(
        &self,
        record: &Record,
        schema: &Schema,
        index: &mut dyn BlockIndex,
    );
    fn candidates(
        &self,
        record: &Record,
        schema: &Schema,
        index: &dyn BlockIndex,
    ) -> Vec<u64>;
}
Expand description

Extracts blocking keys from records and looks up candidates in an index.

Required Methods§

Source

fn blocking_keys(&self, record: &Record, schema: &Schema) -> Vec<String>

Source

fn index_record( &self, record: &Record, schema: &Schema, index: &mut dyn BlockIndex, )

Source

fn candidates( &self, record: &Record, schema: &Schema, index: &dyn BlockIndex, ) -> Vec<u64>

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§