35            "type": 
"CsvWriteDataProvider",
 
   36            "supports_create": True,
 
   43            "path": <DataProviderOptionInfo>{
 
   44                "type": AbstractDataProviderType::get(StringType),
 
   45                "desc": 
"the location for the output CSV data file; mutually exclusive with \"stream\"; the output " 
   46                    "location is handled by a call to FileLocationHandler::getOutputStreamForLocation()",
 
   48            "stream": <DataProviderOptionInfo>{
 
   49                "type": AbstractDataProviderType::get(
new Type(
"OutputStream")),
 
   50                "desc": 
"an output stream for CSV data; mutually exclusive with \"path\"",
 
   52            "block": <DataProviderOptionInfo>{
 
   53                "type": AbstractDataProviderType::get(SoftIntType),
 
   54                "desc": 
"the block size when generating bulk output",
 
   56            "datamap": <DataProviderOptionInfo>{
 
   57                "type": AbstractDataProviderType::get(AutoHashType),
 
   58                "desc": 
"a hash mapping actual data key names to the output field names, for use in case the data " 
   59                    "field names differ; does not have to include every data or output key; keys not present will be " 
   60                    "assumed to be mapped 1:1",
 
   62            "date_format": <DataProviderOptionInfo>{
 
   63                "type": AbstractDataProviderType::get(StringType),
 
   64                "desc": 
"the default mask for date value formatting",
 
   66            "encoding": <DataProviderOptionInfo>{
 
   67                "type": AbstractDataProviderType::get(StringType),
 
   68                "desc": 
"the character encoding for the data",
 
   70            "eol": <DataProviderOptionInfo>{
 
   71                "type": AbstractDataProviderType::get(StringType),
 
   72                "desc": 
"the end of line / record character(s)",
 
   74            "fields": <DataProviderOptionInfo>{
 
   75                "type": AbstractDataProviderType::get(AutoHashType),
 
   76                "desc": 
"describes the data to be output",
 
   78            "headers": <DataProviderOptionInfo>{
 
   79                "type": AbstractDataProviderType::get(
new Type(
"softlist<string>")),
 
   80                "desc": 
"list of field header / column names for the data iterated",
 
   82            "header_reorder": <DataProviderOptionInfo>{
 
   83                "type": AbstractDataProviderType::get(SoftBoolType),
 
   84                "desc": 
"if `true` (the default) then if `headers` are provided, then data fields are reordered to " 
   87            "optimal_quotes": <DataProviderOptionInfo>{
 
   88                "type": AbstractDataProviderType::get(SoftBoolType),
 
   89                "desc": 
"set to `false` to disable optimal quoting; when optimal quoting is disabled, all fields are " 
   90                    "quoted regardless of type or content, when it is enabled, then fields are quoted only if they " 
   91                    "require quoting (i.e. they contain a quote or separator character); the default is `true`",
 
   93            "quote": <DataProviderOptionInfo>{
 
   94                "type": AbstractDataProviderType::get(StringType),
 
   95                "desc": 
"the quote character to quote fields (default: `\"`)",
 
   97            "quote_escape": <DataProviderOptionInfo>{
 
   98                "type": AbstractDataProviderType::get(StringType),
 
   99                "desc": 
"escape character(s) used for `quote` (default: `\\`)",
 
  101            "separator": <DataProviderOptionInfo>{
 
  102                "type": AbstractDataProviderType::get(StringType),
 
  103                "desc": 
"string separating fields in the data (default: `,`)",
 
  105            "verify_columns": <DataProviderOptionInfo>{
 
  106                "type": AbstractDataProviderType::get(SoftBoolType),
 
  107                "desc": 
"if `true` (the default is `false`) then if a line is parsed with a different column count " 
  108                    "than other lines, a `CSVFILEWRITER-DATA-ERROR` exception is thrown",
 
  110            "write_headers": <DataProviderOptionInfo>{
 
  111                "type": AbstractDataProviderType::get(SoftBoolType),
 
  112                "desc": 
"set to `false` to suppress the output of headers; the default is `true`, meaning to output " 
  113                    "headers if they are present",
 
The AbstractCsvWriter class provides a parent for all CSV writers.
Definition: AbstractCsvWriter.qc.dox.h:139
 
Provides a data provider for reading CSV files.
Definition: CsvWriteDataProvider.qc.dox.h:30
 
const ConstructorOptions
Constructor options.
Definition: CsvWriteDataProvider.qc.dox.h:42
 
const ProviderInfo
Provider info.
Definition: CsvWriteDataProvider.qc.dox.h:34
 
AbstractCsvWriter writer
the writer object
Definition: CsvWriteDataProvider.qc.dox.h:122
 
constructor(OutputStream stream, *hash< auto > opts)
Creates the CsvWriteDataProvider with the output data stream where data will be writeen and an option...
 
*hash< string, AbstractDataField > getRecordTypeImpl(*hash< auto > search_options)
Returns the description of the record type, if any.
 
const CsvGenerationOptionList
CSV generation option list.
Definition: CsvWriteDataProvider.qc.dox.h:118
 
constructor(*hash< auto > options)
Creates the object from constructor options.
 
string getName()
Returns the object name.
 
*hash< auto > createRecordImpl(hash< auto > rec, *hash< auto > create_options)
Creates the given record to the data provider.
 
constructor(string path, *hash< auto > opts)
Creates the CsvWriteDataProvider with the output path and optionally an option hash.
 
hash< DataProviderInfo > getStaticInfoImpl()
Returns data provider static info.
 
the CsvUtil namespace. All classes used in the CsvUtil module should be inside this namespace
Definition: AbstractCsvIterator.qc.dox.h:28