![]() |
Consumption Analytics Documentation |
Data feed configuration for the SmartFlatFileCollector.
<bean class="com.cloudcruiser.batch.collect.FlatFileFeedConfig">
<property name="type" value="fileType " /> |
|
Specifies the type of file being processed. The default value is |
|
<property name="quoteChar" value="quoteCharacter " /> |
|
Sets the character used to delimit text fields. Fields enclosed in quote characters can contain the field delimiter as part of the text value. The quote leading and trailing quote characters are not considered part of the field value. The default value is to double quote ( |
|
<property name="delimiter" value="fieldDelimiter " /> |
|
Specifies the delimiter used to separate fields in the flat file. The default value is comma (,). This must be |
|
<property name="prefixesToSkip" value="commentCharacter " /> |
|
Sets common comment line prefixes. Input lines are skipped if they begin with a any one of these prefixes. |
|
<property name="linesToSkip" value="numLinesToSkip " /> |
|
Sets the number of lines to skip at the start of a file. This is useful for skipping over header row(s). The default value is 0. |
|
<property name="encoding" value="encoding " /> |
|
Specifies a character set other than the default for reading input. The default encoding is significant when auto-detection determines multiple possible encoding schemes. Otherwise, the detected encoding will take precedent. The default value is For more information, see the Java SE Documentation on encoding. |
|
<property name="header" value="false" /> |
|
Sets a flag to enable or disable reading values from first processed row into field names for input. If |
|
<property name="lineEnd" value="lineEndType " /> |
|
Sets the line end type. When an explicit line ending is set, any alternate combination of EOL characters encountered will be ignored. The default value is |
|
<property name="inputs"> |
|
<property name="outputs"> |
|
<bean id="feedConfig" class="com.cloudcruiser.batch.collect.FlatFileFeedConfig">
<property name="type" value="DELIMITED"/>
<property name="quoteChar" value='"'/>
<property name="delimiter" value=","/>
<property name="linesToSkip" value="0"/>
<property name="prefixesToSkip" value="#,--"/>
<property name="encoding" value="ISO-8859-1"/>
<property name="header" value="false"/>
<property name="lineEnd" value="ANY"/>
<property name="inputs">
<list>
<bean class="com.cloudcruiser.batch.collect.InputField">
<property name="pos" value="4"/>
<property name="name" value="host"/>
</bean>
<bean class="com.cloudcruiser.batch.collect.InputField">
<property name="pos" value="6"/>
<property name="name" value="vmcpuus"/>
</bean>
</list>
</property>
<property name="outputs">
<list>
<bean class="com.cloudcruiser.batch.collect.OutputField">
<property name="cctype" value="IDENTIFIER"/>
<property name="input" value="host"/>
</bean>
<bean class="com.cloudcruiser.batch.collect.OutputField">
<property name="cctype" value="RESOURCE"/>
<property name="input" value="vmcpuus"/>
</bean>
</list>
</property>
</bean>
(c) Copyright 2017-2020 Hewlett Packard Enterprise Development LP