Description
The DelimitedPartitionReceiver outputs data, in a delimited format, to one or more files parsed over multiple instances via the GenRocket Partition Engine. This allows for huge amounts of data to be generated, in parallel, quickly. The generated files are to be merged together into one file via the GenRocket PartitionFileMergeReceiver.
Note: The default output file generated by this Receiver is in .txt format. The fileExtension parameter can be used to generate output files with a different file extension.
In This Article
Receiver Parameters
The following parameters can be defined for the DelimitedPartitionReceiver. Items with an asterisk (*) are required.
- outputPath* - Defines the base path where data files will be stored.
- outputSubDir - Defines an optional sub-directory under the outputPath where generated data will be stored.
- delimiter* - Defines the character used as the column delimiter.
- quoteTextData* -Defines the character to use when quoting text data. The choices are None, Single or Double.
- headerType*- Defines the option for adding a header row. The options are:
- firstFileOnly - A header is added to the first generated file only.
- everyFile - A header is added to every generated file.
- noHeader - No header is added to any file.
- headerFilePath - Defines the path to an XML configuration file that has header information.
- headerFileSubDir - Defines an optional sub-directory under the headerPath where the XML configuration file is stored.
- headerFileName - Defines the file name of the XML configuration file that has header information.
- filesPerDirectory* - Defines the number of files that will be created in each directory.
- recordsPerFile* - Defines the number of records that will be stored in each file.
- serverNumber* - Defines the server instance number where the Receiver will be running and helps the Receiver determine the output directory structure where it will deposit the generated data files. This Receiver is meant to be used in Scenarios that are run by the GenRocket GPartition engine to generate huge amounts of data; thus, this parameter will automatically be set by the GPartition engine.
- instanceNumber* - Defines the runtime instance number on a given server instance where the Receiver will be running and helps the Receiver determine the output directory structure where it will deposit the generated data files. This Receiver is meant to be used in Scenarios that are run by the GenRocket GPartition engine to generate huge amounts of data; thus, this parameter will automatically be set by the GPartition engine.
- fileExtension - Define the extension of generated files. The default file extension is .txt.
Receiver Attribute Property Keys
The Receiver defines two property keys that can be modified on any of its associated Domain Attributes:
- columnName - Defines the column name as it will be output in the delimited file header.
- include - Determines if the Attribute will be included as a column in the output.