|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.mdm.index.matching.adapter.SbmeStandardizerAdapter
StandardizerAPI implementation that allows MEFA to communicate with the Master Index Standardization Engine.
Field Summary | |
static java.lang.String |
CONCAT_DELIMITER
The delimiter used to concatenate fields that are to be passed to the standardizer |
Constructor Summary | |
SbmeStandardizerAdapter()
Creates new SbmeStandardizerAdapter |
Method Summary | |
(package private) RecordsToNormalize |
getParsedRecords(SystemObject objToStandardize,
java.util.ArrayList parsedGroups)
Given the SystemObject and the configured standardization settings, retrieve the individual records (e.g. |
(package private) RecordsToStandardize |
getUnparsedRecords(SystemObject objToStandardize,
java.util.ArrayList unparsedGroups)
Given the SystemObject and the configured standardization settings, retrieve the individual records (e.g. |
void |
initialize(StandardizerEngineConfiguration config)
Initialize the Sbme standardization engine and the adapter |
protected SbmeStandRecord[] |
keepFirstStandardizedVersion(SbmeStandRecord[][] allUnparsedStandRecords,
SystemObject objToStandardize,
java.lang.String[] inputRecords,
java.lang.String[] inputStandardizationTypes)
Keep only the first standardized version of a record. |
(package private) SystemObject |
phoneticizeFields(SystemObject objToPhoneticize,
java.util.ArrayList phoneticFields)
Phoneticize all the configured fields This will change the passed in SystemObject |
void |
shutdown()
Shutdown and release and relevant resources in the tigris standardization engine and adapter |
SystemObject |
standardize(SystemObject objToStandardize,
SystemObjectStandardization metaData)
Standardize a SystemObject using the Sbme standardization engine |
(package private) SystemObject |
updateSystemObject(SystemObject objToStandardize,
SbmeStandRecord[] standRecords,
StandardizationFieldGroup[] recordsFieldGroups)
Add the standardized values to the SystemObject |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String CONCAT_DELIMITER
Constructor Detail |
public SbmeStandardizerAdapter()
Method Detail |
RecordsToNormalize getParsedRecords(SystemObject objToStandardize, java.util.ArrayList parsedGroups) throws ObjectException, EPathException, StandardizationException
objToStandardize
- the SystemObject to standardizeparsedGroups
- the parsed groups (= structures)
to normalize configuration
ObjectException
- if the retrieval of the configured Object
values fails
EPathException
- if the configured EPaths are invalid
StandardizationException
- if the standardization configuration
is invalidRecordsToStandardize getUnparsedRecords(SystemObject objToStandardize, java.util.ArrayList unparsedGroups) throws ObjectException, EPathException
objToStandardize
- the SystemObject to standardizeunparsedGroups
- the unparsed groups (= free from text)
to standardize configuration
ObjectException
- if the retrieval of the configured Object
values fails
EPathException
- if the configured EPaths are invalidpublic void initialize(StandardizerEngineConfiguration config) throws StandardizationException
initialize
in interface StandardizerAPI
config
- the standardization engine configuration configured
StandardizationException
- if initialization failedprotected SbmeStandRecord[] keepFirstStandardizedVersion(SbmeStandRecord[][] allUnparsedStandRecords, SystemObject objToStandardize, java.lang.String[] inputRecords, java.lang.String[] inputStandardizationTypes) throws StandardizationException, ObjectException
allUnparsedStandRecords
- all the standardized recordsobjToStandardize
- the SystemObject that was standardizedinputRecords
- the input records to the standardizer that were usedinputStandardizationTypes
- the input standardization types to the standardizer that were used
StandardizationException
- a problem inspecting and preparing the standardized values
ObjectException
- accessing the SystemObject for logging purposes failedSystemObject phoneticizeFields(SystemObject objToPhoneticize, java.util.ArrayList phoneticFields) throws ObjectException, EPathException, PhoneticEncoderException
phoneticFields
- an ArrayList of all the fields to phoneticize,
contains PhoneticizeField elements.
ObjectException
EPathException
PhoneticEncoderException
public void shutdown() throws StandardizationException
shutdown
in interface StandardizerAPI
StandardizationException
- if it failed to shut downpublic SystemObject standardize(SystemObject objToStandardize, SystemObjectStandardization metaData) throws StandardizationException, ObjectException
standardize
in interface StandardizerAPI
objToStandardize
- the SystemObject to standardizemetaData
- describes the standardization configuration for the given
SystemObject
StandardizationException
- if standardization failed
ObjectException
- if accessing the required data in the
SystemObject failedSystemObject updateSystemObject(SystemObject objToStandardize, SbmeStandRecord[] standRecords, StandardizationFieldGroup[] recordsFieldGroups) throws ObjectException, EPathException
objToStandardize
- the SystemObject to standardize and updatestandRecords
- The standardized records returned from tigrisrecordsFieldGroups
- the field group configuration corresponding to
each standRecords entry
ObjectException
- if the retrieval/setting of the configured Object
values fails
EPathException
- if the configured EPaths are invalid
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Sun Microsystems, Inc.