Ab Initio Component | DEDUP SORTED : Part 2
...Continue from Part 1...
check-sort (boolean, optional)
- Defines whether you want processing to abort on the first record that is out of sorted order. True causes processing to abort on the first record out of order.
Default is True.
logging (boolean, optional)
- Defines whether the component logs certain events.
Default is False.
log_input (choice, optional)
- Defines how often the component sends an input record to its log port. Available only when the logging parameter is set to True.
log_output (choice, optional)
- Defines how often the component sends an output record to its log port. Available only when the logging parameter is set to True.
log_reject (choice, optional)
- Defines how often the component sends a reject record to its log port. Available only when the logging parameter is set to True.
Runtime behavior of DEDUP SORTED
DEDUP SORTED performs following operations:
1. Reads a grouped flow of records from the in port.
2. Does one of the following if a select expression is specified:
- If the expression values evaluates to 0 for a particular record then it does not process the record.
Produces NULL for a particular record then it writes the record to the reject port and writes a descriptive error message to the error port.
- Evaluates to anything other than 0 or NULL for a particular record Processes the record.
- If you do not supply an expression for the select parameter, DEDUP SORTED processes all records on the in port.
3. Processes groups of records as follows:
- It considers any consecutive records with the same key value to be in the same group.
- If a group consists of one record, writes that record to the out port.
- If a group consists of more than one record, uses the value of the keep parameter to determine which record — if any — to write to the out port, and which record or records to write to the dup port.
- If you have chosen unique-only for the keep parameter, does not write records to the out port from any groups consisting of more than one record.
No comments:
Post a Comment