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§
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>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".