pub struct SzEngineCore;Expand description
Core implementation of the SzEngine trait
Implementations§
Trait Implementations§
Source§impl SzEngine for SzEngineCore
impl SzEngine for SzEngineCore
Source§fn add_record(
&self,
data_source_code: &str,
record_id: &str,
record_definition: &str,
flags: Option<SzFlags>,
) -> SzResult<JsonString>
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>
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>
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>
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>
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>
fn search_by_attributes( &self, attributes: &str, search_profile: Option<&str>, flags: Option<SzFlags>, ) -> SzResult<JsonString>
Searches for entities by attributes. Read more
Source§fn why_search(
&self,
attributes: &str,
entity_id: EntityId,
search_profile: Option<&str>,
flags: Option<SzFlags>,
) -> SzResult<JsonString>
fn why_search( &self, attributes: &str, entity_id: EntityId, search_profile: Option<&str>, flags: Option<SzFlags>, ) -> SzResult<JsonString>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
fn get_redo_record(&self) -> SzResult<JsonString>
Gets the next pending redo record. Read more
Source§fn export_json_entity_report(
&self,
flags: Option<SzFlags>,
) -> SzResult<ExportHandle>
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>
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>
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<()>
fn close_export(&self, export_handle: ExportHandle) -> SzResult<()>
Closes an export operation and releases resources. Read more
Auto Trait Implementations§
impl Freeze for SzEngineCore
impl RefUnwindSafe for SzEngineCore
impl Send for SzEngineCore
impl Sync for SzEngineCore
impl Unpin for SzEngineCore
impl UnwindSafe for SzEngineCore
Blanket Implementations§
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
Mutably borrows from an owned value. Read more