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.OperationException
void alignForeignKeysInDataset(RecordContext context) throws com.orchestranetworks.service.OperationException
com.orchestranetworks.service.OperationException
void alignForeignKeysInDataspace(RecordContext context) throws com.orchestranetworks.service.OperationException
com.orchestranetworks.service.OperationException
void automaticMerge(RecordContext context) throws com.orchestranetworks.service.OperationException
com.orchestranetworks.service.OperationException
void addIntoCluster(RecordContext context, int clusterId) throws com.orchestranetworks.service.OperationException
com.orchestranetworks.service.OperationException
int addIntoCluster(RecordContext context) throws com.orchestranetworks.service.OperationException
com.orchestranetworks.service.OperationException
void delete(RecordContext context) throws com.orchestranetworks.service.OperationException
com.orchestranetworks.service.OperationException
void exactMatchAtOnceToBeMatched(TableContext context, ExactMatchAtOnceContext exactMatchAtOnceContext) throws com.orchestranetworks.service.OperationException
com.orchestranetworks.service.OperationException
void exactMatchAtOnceUnmatched(TableContext context, ExactMatchAtOnceContext exactMatchAtOnceContext) throws com.orchestranetworks.service.OperationException
com.orchestranetworks.service.OperationException
void exactMatchAtOnceToBeMatched(RecordContext context, ExactMatchAtOnceContext exactMatchAtOnceContext) throws com.orchestranetworks.service.OperationException
To Be Matched
state.
See the details of Matching operations here.com.orchestranetworks.service.OperationException
void exactMatchAtOnceUnmatched(RecordContext context, ExactMatchAtOnceContext exactMatchAtOnceContext) throws com.orchestranetworks.service.OperationException
Unmatched
state.
See the details of Matching operations here.com.orchestranetworks.service.OperationException
void groupAtOnceUnmatched(TableContext context, int maximumNumberOfGroups, boolean cleanMarkers) throws com.orchestranetworks.service.OperationException
com.orchestranetworks.service.OperationException
void groupAtOnceToBeMatched(TableContext context, int maximumNumberOfGroups, boolean cleanMarkers) throws com.orchestranetworks.service.OperationException
com.orchestranetworks.service.OperationException
void loadCache(LoadCacheContext context) throws com.orchestranetworks.service.OperationException
context
- describes the cache to load.com.orchestranetworks.service.OperationException
void 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.OperationException
void 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.OperationException
TableContext.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.OperationException
void matchAtOnceToBeMatchedOnGroups(TableContext context, boolean cleanMarkers, Set<Integer> groups) throws com.orchestranetworks.service.OperationException, IllegalArgumentException
com.orchestranetworks.service.OperationException
IllegalArgumentException
void 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.OperationException
void 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.OperationException
TableContext.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.OperationException
void matchAtOnceUnmatchedOnGroups(TableContext context, boolean cleanMarkers, Set<Integer> groups) throws com.orchestranetworks.service.OperationException, IllegalArgumentException
com.orchestranetworks.service.OperationException
IllegalArgumentException
void matchCluster(RecordContext context) throws com.orchestranetworks.service.OperationException
com.orchestranetworks.service.OperationException
void matchTable(RecordContext context) throws com.orchestranetworks.service.OperationException
com.orchestranetworks.service.OperationException
void purgeAtOnce(TableContext context, List<MatchingState> states) throws com.orchestranetworks.service.OperationException
com.orchestranetworks.service.OperationException
void removeFromNotSuspectWith(TableContext context, com.onwbp.adaptation.PrimaryKey primaryKey) throws com.orchestranetworks.service.OperationException
com.orchestranetworks.service.OperationException
void setAtOnceUnmatched(RecordContext context) throws com.orchestranetworks.service.OperationException
com.orchestranetworks.service.OperationException
void 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.OperationException
void setAtOnceToBeMatched(RecordContext context) throws com.orchestranetworks.service.OperationException
com.orchestranetworks.service.OperationException
void 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.OperationException
void setBackGolden(RecordContext context) throws com.orchestranetworks.service.OperationException
com.orchestranetworks.service.OperationException
void setDefinitiveGolden(RecordContext context) throws com.orchestranetworks.service.OperationException
com.orchestranetworks.service.OperationException
void setGolden(RecordContext context) throws com.orchestranetworks.service.OperationException
com.orchestranetworks.service.OperationException
void setNotSuspect(RecordContext context) throws com.orchestranetworks.service.OperationException
com.orchestranetworks.service.OperationException
List<SearchResult> simulateMatchTable(RecordContext context) throws com.orchestranetworks.service.OperationException
RecordContext
.com.orchestranetworks.service.OperationException
RecordContext.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.OperationException
TransientRecordContext.TransientRecordContext(Map, String, AdaptationTable, Session)
List<SearchResult> simulateMatchTable(SearchContext context) throws com.orchestranetworks.service.OperationException
SearchContext
.com.orchestranetworks.service.OperationException
SearchContext.SearchContext(AdaptationTable, Map, Locale)
void switchPivot(RecordContext context) throws com.orchestranetworks.service.OperationException
com.orchestranetworks.service.OperationException
void undelete(RecordContext context) throws com.orchestranetworks.service.OperationException
com.orchestranetworks.service.OperationException
void unmerge(RecordContext context) throws com.orchestranetworks.service.OperationException
com.orchestranetworks.service.OperationException
void unsetGolden(RecordContext context) throws com.orchestranetworks.service.OperationException
com.orchestranetworks.service.OperationException
void unsetGoldenRecursively(RecordContext context) throws com.orchestranetworks.service.OperationException
com.orchestranetworks.service.OperationException
void 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.OperationException
void 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.OperationException
void 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.OperationException
void executeSurvivorshipOnClusters(TableContext context, List<Integer> clusters) throws com.orchestranetworks.service.OperationException
clusters
- list of all clusters on which to execute survivorship.com.orchestranetworks.service.OperationException
void matchBestCluster(RecordContext context) throws com.orchestranetworks.service.OperationException
RecordContext
.com.orchestranetworks.service.OperationException
RecordContext.RecordContext(Adaptation, ProcedureContext)
SearchResult checkSimilarity(RecordContext context, com.onwbp.adaptation.PrimaryKey target, String policyCode) throws com.orchestranetworks.service.OperationException
RecordContext
.com.orchestranetworks.service.OperationException
RecordContext.RecordContext(Adaptation, ProcedureContext)
void disableMatchingPolicy(List<String> policyCodes) throws com.orchestranetworks.service.OperationException
policyCodes
- list of matching policy codes.com.orchestranetworks.service.OperationException