SzEngineCore

Struct SzEngineCore 

Source
pub struct SzEngineCore;
Expand description

Core implementation of the SzEngine trait

Implementations§

Trait Implementations§

Source§

impl SzEngine for SzEngineCore

Source§

fn prime_engine(&self) -> SzResult<()>

Primes the engine for optimal performance. Read more
Source§

fn get_stats(&self) -> SzResult<JsonString>

Gets engine performance statistics. Read more
Source§

fn add_record( &self, data_source_code: &str, record_id: &str, record_definition: &str, flags: Option<SzFlags>, ) -> SzResult<JsonString>

Adds a record for entity resolution. Read more
Source§

fn get_record_preview( &self, record_definition: &str, flags: Option<SzFlags>, ) -> SzResult<JsonString>

Gets a preview of how a record would be processed without persisting it. Read more
Source§

fn delete_record( &self, data_source_code: &str, record_id: &str, flags: Option<SzFlags>, ) -> SzResult<JsonString>

Deletes a record from the entity repository. Read more
Source§

fn reevaluate_record( &self, data_source_code: &str, record_id: &str, flags: Option<SzFlags>, ) -> SzResult<JsonString>

Reevaluates a specific record against current rules. Read more
Source§

fn reevaluate_entity( &self, entity_id: EntityId, flags: Option<SzFlags>, ) -> SzResult<JsonString>

Reevaluates all records for a specific entity. Read more
Source§

fn search_by_attributes( &self, attributes: &str, search_profile: Option<&str>, flags: Option<SzFlags>, ) -> SzResult<JsonString>

Searches for entities by attributes. Read more
Analyzes why a search result was returned for an entity. Read more
Source§

fn get_entity( &self, entity_ref: EntityRef<'_>, flags: Option<SzFlags>, ) -> SzResult<JsonString>

Gets entity information by entity ID or record key. Read more
Source§

fn get_record( &self, data_source_code: &str, record_id: &str, flags: Option<SzFlags>, ) -> SzResult<JsonString>

Gets record information. Read more
Source§

fn find_interesting_entities( &self, entity_ref: EntityRef<'_>, flags: Option<SzFlags>, ) -> SzResult<JsonString>

Finds interesting entities related to a given entity or record. Read more
Source§

fn find_path( &self, start_entity_id: EntityId, end_entity_id: EntityId, max_degrees: i64, _avoid_entity_ids: Option<&HashSet<EntityId>>, _required_data_sources: Option<&HashSet<String>>, flags: Option<SzFlags>, ) -> SzResult<JsonString>

Finds a relationship path between two entities. Read more
Source§

fn find_network( &self, entity_list: &[EntityId], max_degrees: i64, build_out_degree: i64, max_entities: i64, flags: Option<SzFlags>, ) -> SzResult<JsonString>

Finds a network of related entities. Read more
Source§

fn why_entities( &self, entity_id1: EntityId, entity_id2: EntityId, flags: Option<SzFlags>, ) -> SzResult<JsonString>

Analyzes why two entities are related. Read more
Source§

fn why_records( &self, data_source_code1: &str, record_id1: &str, data_source_code2: &str, record_id2: &str, flags: Option<SzFlags>, ) -> SzResult<JsonString>

Analyzes why two records resolved together. Read more
Source§

fn why_record_in_entity( &self, data_source_code: &str, record_id: &str, flags: Option<SzFlags>, ) -> SzResult<JsonString>

Analyzes why a record belongs to its entity. Read more
Source§

fn how_entity( &self, entity_id: EntityId, flags: Option<SzFlags>, ) -> SzResult<JsonString>

Analyzes how an entity was constructed. Read more
Source§

fn get_virtual_entity( &self, record_keys: &[(String, String)], flags: Option<SzFlags>, ) -> SzResult<JsonString>

Creates a virtual entity from record keys without persisting. Read more
Source§

fn process_redo_record( &self, redo_record: &str, _flags: Option<SzFlags>, ) -> SzResult<JsonString>

Processes a redo record for deferred resolution. Read more
Source§

fn get_redo_record(&self) -> SzResult<JsonString>

Gets the next pending redo record. Read more
Source§

fn count_redo_records(&self) -> SzResult<i64>

Counts pending redo records. Read more
Source§

fn export_json_entity_report( &self, flags: Option<SzFlags>, ) -> SzResult<ExportHandle>

Starts a JSON entity export. Read more
Source§

fn export_csv_entity_report( &self, csv_column_list: &str, flags: Option<SzFlags>, ) -> SzResult<ExportHandle>

Starts a CSV entity export. Read more
Source§

fn fetch_next(&self, export_handle: ExportHandle) -> SzResult<JsonString>

Fetches the next batch of export data. Read more
Source§

fn close_export(&self, export_handle: ExportHandle) -> SzResult<()>

Closes an export operation and releases resources. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.