Version

    Extracting Metadata from the Input File

    Metadata is data describing the data structure.

    You can extract metadata from your flat data file or create it by your own. We will show you, how to extract it from input file.

    Right-click the first edge and select New metadata  Extract from flat file.

    ctg 0610
    Figure 489. Extracting Metadata

    A wizard for metadata extraction opens. Use Browse button to open dialog to specify a file.

    ctg 0620
    Figure 490. Introductory Window of Metadata Editor

    Select the input.dat file in data-in directory and click the OK button.

    ctg 0630
    Figure 491. Selecting Data File

    The Metadata Editor fills up:

    ctg 0640
    Figure 492. Metadata Editor (Introductory Pane Filled)

    Click Next to specify metadata fields.

    ctg 0650
    Figure 493. Metadata Editor (Editing Pane)

    As you can see, the wizard guessed that the records consisted of three fields and it also understood that the third field values were integer numbers.

    You can replace the three default field names (Field1, Field2 and Field3) with more descriptive ones: FirstName, LastName and Salary.

    To do that, click the Field1 item and enter the new field name.

    ctg 0660
    Figure 494. Renaming a Field

    Do the same with the other two field names. The result will look like this:

    ctg 0670
    Figure 495. All Fields Have Been Renamed

    Now click Finish. This way you have created metadata. The metadata has been assigned to the edge.

    You can extract metadata on edges and on input components.