File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 77class DataGetterCartesian (DataGetterABC ):
88
99 """
10- A DataGetter handles the retrieval of data from 'df_search_within'
11- It retrieves lists of potential matches to a record in 'df_find_match_for'
12- in 'df_search_within'
10+ The DataGetter class handles the retrieval of record_ids from 'df_right'
11+
12+ This Cartesian datagetter is the simplest, most thorough, but least efficient implementation
13+ where every record_id in 'df_right' is returned, compared and scored against 'df_left', leading to n^2 complexity.
14+
1315 """
1416
1517 def add_data (self , matcher ):
1618
17- """Adds the data in 'matcher.df_search_within' to a sqlite database
18- and create a connection to the database to be used by the data getter
19- Also registers the match object on the datagetter.
19+ """
20+ Registers the matcher on the datagetter so the datagetter can manipulate the matcher object
2021
2122 Args:
2223 matcher. The matcher object
@@ -32,7 +33,7 @@ def get_potential_match_ids_from_record(self, rec_left):
3233 """Retrieves lists of potential matches to a record
3334
3435 Args:
35- rec_find_match_for : The record for which we're trying to find a match
36+ rec_left : The record for which we're trying to find a match
3637
3738 Returns:
3839 A list of rec_potential_match records which represent the potential matches
You can’t perform that action at this time.
0 commit comments