Fixed-Size Line Set Extractor

This component:

The Fixed-Size Line Set Extractor component uses a filter that:

The new properties are available for the next components of the tree

Setting up the component

To set up the component

Configuration tab

You define the source and the number of lines for each set to be extracted.

Input stream: Provides the list of resources. Select an input stream.

Note: The list Input stream is empty if no resources are available.

Number of Lines in Set: The number of lines that are included in a set ranges from one to n lines. Type the number of lines per set which is extracted at a time from the input stream by the Fixed-Size Line Set Extractor.

Mapping tab

The Mapping rules table allows you to create a set of comparison values. Each set of lines extracted by the Fixed-Size Line Set Extractor is filtered depending on the following options:

If a line or its position matches one of the values defined in the Value column entries, this line makes up a new property whose name is defined by the related Name column entry in the table.

: Adds a new row to the Mapping rules table.

: Removes a row from the Mapping rules table.

Optional: If this option is not selected, an error is generated if the Fixed-Size Line Set Extractor does not find a line or position that matches the Value. If this option is selected, no error is generated whatever the search result.

Name: Type the name of the line that matches the related Value column entry in the table.

Rules: For each row that you add to the Mapping rules table, you can select one of the two options: matches pattern or is token number.

Value: Type an alphanumeric string or an integer depending on the Rules that you have selected. If you have selected:

Advanced tab

On this tab, you give the conditions to process specific lines from the data stream. You can decide to ignore the header, the comment, and empty lines. But you can decide to extract other lines by indicating their Position in the stream in the last area. For example, you extract the last line of a file because it contains information relating to all the previous lines.

Notes: Advanced tab provides the following features:

  • You can extract lines that you have first ignored in the Mapping rules of the Configuration tab.

  • You can ignore the header lines by correctly setting up Header size. Even if the Header size field is correctly set up, the Fixed-Size Line Set Extractor allows you to retrieve the header lines by typing their Position in the stream.

: Adds a row to the table.

: Removes a row from the table.

Header size: Type the number of header lines that the component must not process.

Comments: Allows you to create the list of lines that the component must not process. For each row that you add to the table, you can type a regular expression. For example, if you type “//*”, the component does not process the comment lines that start with the character “//”.

Default Lines