Normalize
Normalize
Normalize generates multiple output records from each of its input records. You can
directly specify the number of output records for each input record, or the
number of output records can depend on some calculation.
Parameters
transform
Either the name of the file containing the types and transform functions, or a
transform string.
Length: Specifies the number of output records Normalize generates for this input
record. Normalize calls the length function once for each input record.
output_select: An output value of 0 means false (the record was not selected); non-
0 means true (the recordwas selected).
Normalize ignores records for which output_select returns 0; it writes all others
to the out port.
If you have not defined the output_select transform function, Normalize writes all
output records to the out port.
If any of the transform functions returns NULL, Normalize writes:
The current input record to the reject port (if connected).
A descriptive error message to the error port (if connected).
If you do not connect flows to the reject or error ports, Normalize discards the
information.
Q. If u r having single record in input, design a graph so that in o/p will have 10
records?
Q. What is length function inside transform parameter? How do you decide the number
of records to be produced dynamically?
Q. What is index in normalize? Will you create values for index?
Q. How do you select only particular records after applying normalize logic?
Q. Give one example using normalize component. What if vector is not fixed length?