Detailed Description of String Lookup

Searches for the input value (from the property in) in the lookup file defined by the property lookupFileName. If the value is found it is stored in the property out. The search result is reported by the scoring entries MCL_FOUND/MCL_NOT_FOUND. For a description of the lookup file, see StringLookup file.


Top of page

Example: Example
<step id='stringLookup' className='cz.adastra.cif.tasks.clean.StringLookupAlgorithm'>
        <properties>
                <in>value</in>
                <out>verified_value</out>
                <lookupFileName>known_values.cif</lookupFileName>
                <omitIfNotFound>true</omitIfNotFound>
                <scorer scoreColumn='value' explanationColumn='expl'>
                        <scoringEntries>
                                <scoringEntry key='MCL_NULL' score='100' explain='true' /> -- null input data
                                <scoringEntry key='MCL_FOUND' score='100' explain='true' /> -- value found
                                <scoringEntry key='MCL_NOT_FOUND' score='100' explain='true' /> -- value NOT found
                        </scoringEntries>
                </scorer>
        </properties>
</step>

iWay Software