Cloud Cruiser became HPE Consumption Analytics on Nov. 1st. You'll still see the old name in places while we update this site.

 

 

Consumption Analytics Documentation

Home > Cloud Cruiser 3 > Batch XML Reference > Universal collectors > Flat File > FlatFileFeedConfig

FlatFileFeedConfig

Table of contents
No headers

Data feed configuration for the SmartFlatFileCollector.

Class

<bean class="com.cloudcruiser.batch.collect.FlatFileFeedConfig">

Properties

<property name="type" value="fileType
" />

Specifies the type of file being processed. The default value is DELIMITED . This property is required.

<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 TAB , COMMA , or any literal character.

<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 UTF-8 .

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 linesToSkip is greater than zero, then the first row after linesToSkip is considered the header row.

<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 ANY .

<property name="inputs">

Sets the list of input fields to collect data from.

<property name="outputs">

Sets the list of output fields to collect data from.

Spring Batch XML Example

<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>
Last modified

Tags

This page has no custom tags.

Classifications

This page has no classifications.
© Copyright 2018 Hewlett Packard Enterprise Development LP