|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The SurvivorStrategyInterface class is the interface for all default and custom survivor calculators. This class must be implemented by any custom calculators plugged in to a master index application.
Method Summary | |
java.lang.Object |
clone()
Returns an exact copy of the survivor strategy object. |
void |
init(java.util.Collection parameters)
Initializes the survivor strategy object. |
SystemField |
selectField(java.lang.String candidateId,
SystemFieldListMap fields)
Selects the field value to populate into the Single Best Record (SBR). |
Method Detail |
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
Object
- A copy of the object.
java.lang.CloneNotSupportedException
- Thrown if the strategy does not
support cloning.public void init(java.util.Collection parameters) throws StrategyCreationException
parameters
- The parameters given in the Best Record configuration file.
void
- None.
StrategyCreationException
- Thrown if the strategy cannot be
initialized.public SystemField selectField(java.lang.String candidateId, SystemFieldListMap fields) throws SurvivorCalculationException
candidateId
- The candidate field name.fields
- The mapping of a system fields list to a system key.
SystemField
- The value of the field that has been
selected to populate the SBR. This method returns
null if the new value cannot be determined and the original
candidate value should be used.
SurvivorCalculationException
- Thrown if there is an error
with the calculation configuration.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright 2007 by Sun Microsystems, Inc. All Rights Reserved.