public interface MatchingOperations
Procedure.
Example:
Procedure matching = new Procedure()
{
public void execute(ProcedureContext procedureContext) throws Exception
{
Adaptation record = ...;
RecordContext context = new RecordContext(
record,
procedureContext);
MatchingOperations operations = MatchingOperationsFactory.getMatchingOperations();
if (...)
operations.matchCluster(context);
else if (...)
operations.matchTable(context);
...
operations.setDefinitiveGolden(context);
}
};
| Modifier and Type | Method and Description |
|---|---|
int |
addIntoCluster(RecordContext context)
Adds a record into a new cluster.
|
void |
addIntoCluster(RecordContext context,
int clusterId)
Adds a record into an existing cluster.
|
void |
alignForeignKeys(RecordContext context)
Updates all foreign keys across dataspace, dataset that target merged records.
|
void |
alignForeignKeysInDataset(RecordContext context)
Updates foreign keys in the same dataset that target merged records.
|
void |
alignForeignKeysInDataspace(RecordContext context)
Updates foreign keys in the same dataspace that target merged records.
|
void |
automaticMerge(RecordContext context)
Executes the 'Automatic merge' operation on a record.
|
SearchResult |
checkSimilarity(RecordContext context,
com.onwbp.adaptation.PrimaryKey target,
String policyCode)
Checks similarity operation using
RecordContext. |
void |
delete(RecordContext context)
Deletes a specified record.
|
void |
disableMatchingPolicy(List<String> policyCodes)
Disables a list of matching policies.
|
void |
enableMatchingPolicy(List<String> policyCodes)
Enables a list of matching policies.
|
void |
exactMatchAtOnceToBeMatched(RecordContext context,
ExactMatchAtOnceContext exactMatchAtOnceContext)
Performs an Exact match at once operation on the record in the
To Be Matched state. |
void |
exactMatchAtOnceToBeMatched(TableContext context,
ExactMatchAtOnceContext exactMatchAtOnceContext)
Exact match at once operation on To Be Matched state.
|
void |
exactMatchAtOnceUnmatched(RecordContext context,
ExactMatchAtOnceContext exactMatchAtOnceContext)
Performs an Exact match at once operation on the record in the
Unmatched state. |
void |
exactMatchAtOnceUnmatched(TableContext context,
ExactMatchAtOnceContext exactMatchAtOnceContext)
Exact match at once operation on Unmatched state.
|
void |
executeSurvivorshipOnClusters(TableContext context,
List<Integer> clusters)
Executes survivorship on each cluster sequentially.
|
void |
groupAtOnceToBeMatched(TableContext context,
int maximumNumberOfGroups,
boolean cleanMarkers)
Group at once operation on To be matched state.
|
void |
groupAtOnceUnmatched(TableContext context,
int maximumNumberOfGroups,
boolean cleanMarkers)
Group at once operation on Unmatched state.
|
void |
loadCache(LoadCacheContext context)
Loads the cache for the search engine dedicated to Matching.
|
void |
matchAtOnceFullModeToBeMatched(TableContext context,
int maximumNumberOfMatch,
boolean forceOrphansGolden,
List<MatchingState> statesToTriggerMatching)
Match at once full mode operation on To be matched state.
|
void |
matchAtOnceFullModeUnmatched(TableContext context,
int maximumNumberOfMatch,
boolean forceOrphansGolden,
List<MatchingState> statesToTriggerMatching)
Match at once full mode operation on Unmatched state.
|
void |
matchAtOnceToBeMatched(TableContext context,
int maximumNumberOfMatch,
boolean cleanMarkers,
List<MatchingState> statesToTriggerMatching)
Match at once operation on To be matched state.
|
void |
matchAtOnceToBeMatchedOnGroups(TableContext context,
boolean cleanMarkers,
Set<Integer> groups)
Match at once operation on groups of To be matched records.
|
void |
matchAtOnceToBeMatchedParallelMode(TableContext context,
boolean cleanMarkers)
Match at once operation on To Be Matched state with Parallel Mode.
|
void |
matchAtOnceUnmatched(TableContext context,
int maximumNumberOfMatch,
boolean cleanMarkers,
List<MatchingState> statesToTriggerMatching)
Match at once operation on Unmatched state.
|
void |
matchAtOnceUnmatchedOnGroups(TableContext context,
boolean cleanMarkers,
Set<Integer> groups)
Match at once operation on groups of Unmatched records.
|
void |
matchAtOnceUnmatchedParallelMode(TableContext context,
boolean cleanMarkers)
Match at once operation on Unmatched state with Parallel Mode.
|
void |
matchBestCluster(RecordContext context)
Puts the record in the best cluster.
|
void |
matchCluster(RecordContext context)
Match cluster operation.
|
void |
matchSelection(TableContext tableContext,
List<MatchingState> sourceStates,
List<MatchingState> targetStates)
Individually matches each source record in the source states against all target matching states.
|
void |
matchSelection(TableContext tableContext,
Set<com.onwbp.adaptation.PrimaryKey> sourceRecords,
List<MatchingState> targetStates)
Individually matches each source record against all target matching states.
|
void |
matchSelection(TableContext tableContext,
Set<com.onwbp.adaptation.PrimaryKey> sourceRecords,
Set<com.onwbp.adaptation.PrimaryKey> targetRecords)
Individually matches each source record against all target records.
|
void |
matchTable(RecordContext context)
Match table operation.
|
void |
purgeAtOnce(TableContext context,
List<MatchingState> states)
Purges, or physically deletes, all records in the specified Matching states.
|
void |
removeFromNotSuspectWith(TableContext context,
com.onwbp.adaptation.PrimaryKey primaryKey)
Cleans the reference to this PrimaryKey from the list of not suspect with.
|
void |
setAtOnceToBeMatched(RecordContext context)
Set at once To be matched operation on a record.
|
void |
setAtOnceToBeMatched(TableContext context,
List<MatchingState> statesToReset,
boolean setUnsetRecords)
Set at once To be matched operation on the whole table.
|
void |
setAtOnceUnmatched(RecordContext context)
Set at once Unmatched operation on a record.
|
void |
setAtOnceUnmatched(TableContext context,
List<MatchingState> statesToReset,
boolean setUnsetRecords)
Set at once Unmatched operation on the whole table.
|
void |
setBackGolden(RecordContext context)
Set back golden operation.
|
void |
setDefinitiveGolden(RecordContext context)
Set definitive golden operation.
|
void |
setGolden(RecordContext context)
Set golden operation.
|
void |
setNotSuspect(RecordContext context)
Set not suspect operation.
|
List<SearchResult> |
simulateMatchTable(RecordContext context)
Simulates match table operation using
RecordContext. |
List<SearchResult> |
simulateMatchTable(SearchContext context)
Simulates a match table operation using
SearchContext. |
List<SearchResult> |
simulateMatchTable(TransientRecordContext context)
Simulates a match table operation using
TransientRecordContext. |
void |
switchPivot(RecordContext context)
Switch pivot operation.
|
void |
undelete(RecordContext context)
Undelete operation.
|
void |
unmerge(RecordContext context)
Unmerge operation.
|
void |
unsetGolden(RecordContext context)
Unset golden operation.
|
void |
unsetGoldenRecursively(RecordContext context)
Unset golden recursively operation.
|
void alignForeignKeys(RecordContext context) throws com.orchestranetworks.service.OperationException
com.orchestranetworks.service.OperationExceptionvoid alignForeignKeysInDataset(RecordContext context) throws com.orchestranetworks.service.OperationException
com.orchestranetworks.service.OperationExceptionvoid alignForeignKeysInDataspace(RecordContext context) throws com.orchestranetworks.service.OperationException
com.orchestranetworks.service.OperationExceptionvoid automaticMerge(RecordContext context) throws com.orchestranetworks.service.OperationException
com.orchestranetworks.service.OperationExceptionvoid addIntoCluster(RecordContext context, int clusterId) throws com.orchestranetworks.service.OperationException
com.orchestranetworks.service.OperationExceptionint addIntoCluster(RecordContext context) throws com.orchestranetworks.service.OperationException
com.orchestranetworks.service.OperationExceptionvoid delete(RecordContext context) throws com.orchestranetworks.service.OperationException
com.orchestranetworks.service.OperationExceptionvoid exactMatchAtOnceToBeMatched(TableContext context, ExactMatchAtOnceContext exactMatchAtOnceContext) throws com.orchestranetworks.service.OperationException
com.orchestranetworks.service.OperationExceptionvoid exactMatchAtOnceUnmatched(TableContext context, ExactMatchAtOnceContext exactMatchAtOnceContext) throws com.orchestranetworks.service.OperationException
com.orchestranetworks.service.OperationExceptionvoid exactMatchAtOnceToBeMatched(RecordContext context, ExactMatchAtOnceContext exactMatchAtOnceContext) throws com.orchestranetworks.service.OperationException
To Be Matched state.
See the details of Matching operations here.com.orchestranetworks.service.OperationExceptionvoid exactMatchAtOnceUnmatched(RecordContext context, ExactMatchAtOnceContext exactMatchAtOnceContext) throws com.orchestranetworks.service.OperationException
Unmatched state.
See the details of Matching operations here.com.orchestranetworks.service.OperationExceptionvoid groupAtOnceUnmatched(TableContext context, int maximumNumberOfGroups, boolean cleanMarkers) throws com.orchestranetworks.service.OperationException
com.orchestranetworks.service.OperationExceptionvoid groupAtOnceToBeMatched(TableContext context, int maximumNumberOfGroups, boolean cleanMarkers) throws com.orchestranetworks.service.OperationException
com.orchestranetworks.service.OperationExceptionvoid loadCache(LoadCacheContext context) throws com.orchestranetworks.service.OperationException
context - describes the cache to load.com.orchestranetworks.service.OperationExceptionvoid matchAtOnceToBeMatched(TableContext context, int maximumNumberOfMatch, boolean cleanMarkers, List<MatchingState> statesToTriggerMatching) throws com.orchestranetworks.service.OperationException, IllegalArgumentException
IllegalArgumentException - if statesToTrigger contains other states than MatchingState.TO_BE_MATCHED or MatchingState.GOLDEN.com.orchestranetworks.service.OperationExceptionvoid matchAtOnceToBeMatchedParallelMode(TableContext context, boolean cleanMarkers) throws com.orchestranetworks.service.OperationException
TableContext outside an existing Procedure.
See the details of Matching operations here.com.orchestranetworks.service.OperationExceptionTableContext.TableContext(AdaptationTable, Session)void matchAtOnceFullModeToBeMatched(TableContext context, int maximumNumberOfMatch, boolean forceOrphansGolden, List<MatchingState> statesToTriggerMatching) throws com.orchestranetworks.service.OperationException, IllegalArgumentException
IllegalArgumentException - if statesToTrigger contains states other than MatchingState.TO_BE_MATCHED or MatchingState.GOLDEN or MatchingState.PIVOT or MatchingState.SUSPECT.com.orchestranetworks.service.OperationExceptionvoid matchAtOnceToBeMatchedOnGroups(TableContext context, boolean cleanMarkers, Set<Integer> groups) throws com.orchestranetworks.service.OperationException, IllegalArgumentException
com.orchestranetworks.service.OperationExceptionIllegalArgumentExceptionvoid matchAtOnceUnmatched(TableContext context, int maximumNumberOfMatch, boolean cleanMarkers, List<MatchingState> statesToTriggerMatching) throws com.orchestranetworks.service.OperationException, IllegalArgumentException
IllegalArgumentException - if statesToTrigger contains other states than MatchingState.UNMATCHED or MatchingState.GOLDEN.com.orchestranetworks.service.OperationExceptionvoid matchAtOnceUnmatchedParallelMode(TableContext context, boolean cleanMarkers) throws com.orchestranetworks.service.OperationException
TableContext outside an existing Procedure.
See the details of Matching operations here.com.orchestranetworks.service.OperationExceptionTableContext.TableContext(AdaptationTable, Session)void matchAtOnceFullModeUnmatched(TableContext context, int maximumNumberOfMatch, boolean forceOrphansGolden, List<MatchingState> statesToTriggerMatching) throws com.orchestranetworks.service.OperationException, IllegalArgumentException
IllegalArgumentException - if statesToTrigger contains states other than MatchingState.UNMATCHED or MatchingState.GOLDEN or MatchingState.PIVOT or MatchingState.SUSPECT.com.orchestranetworks.service.OperationExceptionvoid matchAtOnceUnmatchedOnGroups(TableContext context, boolean cleanMarkers, Set<Integer> groups) throws com.orchestranetworks.service.OperationException, IllegalArgumentException
com.orchestranetworks.service.OperationExceptionIllegalArgumentExceptionvoid matchCluster(RecordContext context) throws com.orchestranetworks.service.OperationException
com.orchestranetworks.service.OperationExceptionvoid matchTable(RecordContext context) throws com.orchestranetworks.service.OperationException
com.orchestranetworks.service.OperationExceptionvoid purgeAtOnce(TableContext context, List<MatchingState> states) throws com.orchestranetworks.service.OperationException
com.orchestranetworks.service.OperationExceptionvoid removeFromNotSuspectWith(TableContext context, com.onwbp.adaptation.PrimaryKey primaryKey) throws com.orchestranetworks.service.OperationException
com.orchestranetworks.service.OperationExceptionvoid setAtOnceUnmatched(RecordContext context) throws com.orchestranetworks.service.OperationException
com.orchestranetworks.service.OperationExceptionvoid setAtOnceUnmatched(TableContext context, List<MatchingState> statesToReset, boolean setUnsetRecords) throws com.orchestranetworks.service.OperationException
setUnsetRecords - if true then records with no state will be set to "Unmatched".com.orchestranetworks.service.OperationExceptionvoid setAtOnceToBeMatched(RecordContext context) throws com.orchestranetworks.service.OperationException
com.orchestranetworks.service.OperationExceptionvoid setAtOnceToBeMatched(TableContext context, List<MatchingState> statesToReset, boolean setUnsetRecords) throws com.orchestranetworks.service.OperationException
setUnsetRecords - if true then records with no state will be set to "To be matched".com.orchestranetworks.service.OperationExceptionvoid setBackGolden(RecordContext context) throws com.orchestranetworks.service.OperationException
com.orchestranetworks.service.OperationExceptionvoid setDefinitiveGolden(RecordContext context) throws com.orchestranetworks.service.OperationException
com.orchestranetworks.service.OperationExceptionvoid setGolden(RecordContext context) throws com.orchestranetworks.service.OperationException
com.orchestranetworks.service.OperationExceptionvoid setNotSuspect(RecordContext context) throws com.orchestranetworks.service.OperationException
com.orchestranetworks.service.OperationExceptionList<SearchResult> simulateMatchTable(RecordContext context) throws com.orchestranetworks.service.OperationException
RecordContext.com.orchestranetworks.service.OperationExceptionRecordContext.RecordContext(Adaptation, String, ProcedureContext)List<SearchResult> simulateMatchTable(TransientRecordContext context) throws com.orchestranetworks.service.OperationException
TransientRecordContext. TransientRecordContext works much the same as RecordContext except in cases of relation matching. TransientRecordContext is used prior to record creation, so relation matching is not possible.com.orchestranetworks.service.OperationExceptionTransientRecordContext.TransientRecordContext(Map, String, AdaptationTable, Session)List<SearchResult> simulateMatchTable(SearchContext context) throws com.orchestranetworks.service.OperationException
SearchContext.com.orchestranetworks.service.OperationExceptionSearchContext.SearchContext(AdaptationTable, Map, Locale)void switchPivot(RecordContext context) throws com.orchestranetworks.service.OperationException
com.orchestranetworks.service.OperationExceptionvoid undelete(RecordContext context) throws com.orchestranetworks.service.OperationException
com.orchestranetworks.service.OperationExceptionvoid unmerge(RecordContext context) throws com.orchestranetworks.service.OperationException
com.orchestranetworks.service.OperationExceptionvoid unsetGolden(RecordContext context) throws com.orchestranetworks.service.OperationException
com.orchestranetworks.service.OperationExceptionvoid unsetGoldenRecursively(RecordContext context) throws com.orchestranetworks.service.OperationException
com.orchestranetworks.service.OperationExceptionvoid matchSelection(TableContext tableContext, Set<com.onwbp.adaptation.PrimaryKey> sourceRecords, Set<com.onwbp.adaptation.PrimaryKey> targetRecords) throws com.orchestranetworks.service.OperationException
sourceRecords - selects the records to include in the matching operation. Source records are those in the Unmatched, To be matched, Suspicious and Golden states.targetRecords - determines which records the source records will be matched against. Target records are those in the Unmatched, To be matched, Suspicious, Golden, Pivot and Suspect states.com.orchestranetworks.service.OperationExceptionvoid matchSelection(TableContext tableContext, Set<com.onwbp.adaptation.PrimaryKey> sourceRecords, List<MatchingState> targetStates) throws com.orchestranetworks.service.OperationException
sourceRecords - selects the records to include in the matching operation. Source records are those in the Unmatched, To be matched, Suspicious and Golden states.targetStates - determines which matching states the source records will be matched against. Target states are those in the Unmatched, To be matched, Suspicious, Golden, Pivot and Suspect states.com.orchestranetworks.service.OperationExceptionvoid matchSelection(TableContext tableContext, List<MatchingState> sourceStates, List<MatchingState> targetStates) throws com.orchestranetworks.service.OperationException
sourceStates - selects the records in the specific state to include in the matching operation. Source states are those in the Unmatched, To be matched, Suspicious and Golden states.targetStates - determines which matching states the source records will be matched against. Target states are those in the Unmatched, To be matched, Suspicious, Golden, Pivot and Suspect states.com.orchestranetworks.service.OperationExceptionvoid executeSurvivorshipOnClusters(TableContext context, List<Integer> clusters) throws com.orchestranetworks.service.OperationException
clusters - list of all clusters on which to execute survivorship.com.orchestranetworks.service.OperationExceptionvoid matchBestCluster(RecordContext context) throws com.orchestranetworks.service.OperationException
RecordContext.com.orchestranetworks.service.OperationExceptionRecordContext.RecordContext(Adaptation, ProcedureContext)SearchResult checkSimilarity(RecordContext context, com.onwbp.adaptation.PrimaryKey target, String policyCode) throws com.orchestranetworks.service.OperationException
RecordContext.com.orchestranetworks.service.OperationExceptionRecordContext.RecordContext(Adaptation, ProcedureContext)void disableMatchingPolicy(List<String> policyCodes) throws com.orchestranetworks.service.OperationException
policyCodes - list of matching policy codes.com.orchestranetworks.service.OperationException