Vorheriges Thema: Abschnitt zur SQL-SchnittstelleNächstes Thema: Abschnitt "TranslationTableCollection"


InputFormatCollection-Abschnitt

Dieser Abschnitt beschreibt die Struktur der aus der Datenquelle abgerufenen Daten (wie eine Datenzeile in Felder aufgeteilt werden soll, die Feldtypen und die Formate). In diesem Abschnitt erfolgen in den kombinierten Feldern die Eingangsdatenfilterung und Datenbearbeitung.

Der allgemeine Workflow dieses Abschnitts ist folgendermaßen:

Der Knoten "InputFormatCollection" kann einen oder mehrere InputFormat-Knoten enthalten.

XML-Struktur:

<InputFormatCollection>
	<InputFormat InputFormatName="MyInputFormat">
	<InputFormatFields> 
		<InputFormatField Name="sid_id" Type="string"/>
		<InputFormatField Name="content" Type="string"/>
		<InputFormatField Name="date" Type="time" 
               TimeFormat="%d/%m/%Y %H:%M:%S"/>
		<InputFormatField Name="server" Type="string" 
               Source="compound">
		<Compound>
			<Segment SourceField="content" 
                     RegularExpression=".*Job server: ([^\n]+).*" />
		</Compound>
		</InputFormatField>
	</InputFormatFields>
<TranslatorSwitch DefaultTranslator="GeoTranslator">
	<TranslatorCase  TranslatorName="NonGeoTranslator" Break="yes">
		<Condition SourceField="routing_info" Operator="EQ"
             Value="cnano"/>
	</TranslatorCase>
</TranslatorSwitch>
</InputFormat>
</InputFormatCollection>