Create Delimited File Parser

Skip to end of metadata
Go to start of metadata
Author Boris Capitanu
Creation date 06/01/2011
Firing policy all
Package org.seasr.meandre.components.io.file.input

DESCRIPTION

This module creates a parser for the specified WevdavClient. The file is expected to have a consistent delimiter character.

Detailed Description:
This module creates a parser that can be used to read data from a file that uses a single delimiter character to separate the data into fields. The delimiter can be found automatically, or it can be input in the properties editor. If the delimiter is to be found automatically, the file must contain at least 2 rows. The file can contain a row of labels, and a row of data types. These are also specified via the properties editor.Properties are used to specify the delimiter, the labels row number, and the types row number. The row numbers are indexed from zero.Typically the File Parser output port of this module is connected to the File Parser input port of a module whose name begins with 'Parse File', for example, Parse File To Table or Parse File To Paging Table.Data Type Restrictions: The input to this module must be a delimited file. If the file is large a java OutOfMemory error might occur.

Data Handling: The module does not destroy or modify the input data.

INPUTS

Name Description Example
url
URL pointing to a resource location.
 
webdavClient
WebdavClient pointing to a resource
 

OUTPUTS

Name Description Example
error
This port is used to output any unhandled errors encountered during the execution of this component
 
parser
A Delimited File Parser for the specified file
 

PROPERTIES

Name Description Default value
delimiter
The delimiter of this file if it is different than space, tab '|' or '='
default
_debug_level
Controls the verbosity of debug messages printed by the component during execution.
Possible values are: off, severe, warning, info, config, fine, finer, finest, all
Append ',mirror' to any of the values above to mirror that output to the server logs.
info
typesRowIndex
This is the index of the types row in the file, or -1 if there is no types row
1
labelsRowIndex
This is the index of the labels row in the file, or -1 if there is no labels row
0
_ignore_errors
Set to 'true' to ignore all unhandled exceptions and prevent the flow from being terminated. Setting this property to 'false' will result in the flow being terminated in the event an unhandled exception is thrown during the execution of this component
false
Labels:
file file Delete
parser parser Delete
Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.