256 const ConstantConflictList = (
"name",
"struct",
"code",
"default");
260 "allow_dot":
"allows input fields to have a dot in their name without implying a structured format",
261 "allow_output_dot":
"allows output fields to have a dot in their name without implying a structured format",
262 "date_format":
"gives the default format for parsing dates from strings; ex: \"MM/DD/YYYY HH:mm:SS\"",
263 "encoding":
"gives the default output character encoding for string fields",
264 "info_log":
"a call reference / closure for informational logging",
265 "input":
"a hash describing the input record",
266 "input_log":
"a call reference / closure for input record logging",
267 "input_timezone":
"the default timezone to assume when parsing input dates",
268 "name":
"the name of the Mapper object",
269 "number_format":
"the default number format when parsing number fields from strings; ex: \".,\"",
270 "output":
"a hash describing the output record",
271 "output_log":
"a call reference / closure for input record logging",
272 "timezone":
"the default output timezone for date/time values",
273 "runtime":
"runtime options as a hash (see also setRuntime(), replaceRuntime())",
274 "empty_strings_to_nothing":
"converts out record's empty strings and into NOTHING - actually the value is deleted",
291 "number_format":
True,
293 "empty_strings_to_nothing" :
True,
326 string encoding =
"utf-8";
378 bool m_empty_strings_to_nothing =
False;
445 convertToHash(
int t,
string k, reference<any> fh);
452 checkInputField(
string k,
string name);
462 checkMapField(
string k, reference<any> fh);
469 checkTimezoneOption(
hash opts,
string rn);
492 setRuntime(
string key,
auto value);
514 setRuntime(
hash runtime);
536 replaceRuntime(*
hash runtime);
551 auto getRuntime(
string key);
555 string getFieldName(
string fname);
577 *
hash getInputRecord();
581 *
hash getOutputRecord();
594 list<hash> mapAll(
list recs);
607 list<hash> mapAll(
hash recs);
674 nothing mapFieldIntern(reference<hash> h,
string key,
hash rec,
bool do_list,
int list_size);
681 string truncateField(
string k,
string val,
int ix,
int sze,
int maxlen);
688 fieldLengthError(
string k,
string val,
int ix,
int sze,
int maxlen,
hash rc);
711 mapFieldType(
string key,
hash m, reference<any> v,
hash rec);
727 error2(
string ex,
string fmt);
734 auto mapSubclass(
hash m,
auto v);
Qore::AbstractIterator i
input iterator; AbstractIterator::getValue() must return a hash
Definition: Mapper.qm.dox.h:749
*string date_format
the global date format for parsing dates
Definition: Mapper.qm.dox.h:356
Mapper::Mapper mapc
data mapper
Definition: Mapper.qm.dox.h:790
hash mapd
the hash with a subset of the mappings used dynamically
Definition: Mapper.qm.dox.h:320
bool next()
Moves the current position of the iterator to the next element; returns False if there are no more el...
hash consth
map of constant fields
Definition: Mapper.qm.dox.h:387
*code output_log
an optional output data logging callback; must accept a hash giving the output data hash ...
Definition: Mapper.qm.dox.h:338
*code info_log
an optional info logging callback; must accept a sprintf()-style format specifier and optional argume...
Definition: Mapper.qm.dox.h:332
provides a hash iterator based on a mapper object and an iterator input source
Definition: Mapper.qm.dox.h:781
this class is a base class for mapping data; see Mapper Examples for usage examples ...
Definition: Mapper.qm.dox.h:251
hash mapc
the hash providing output field names and mappings
Definition: Mapper.qm.dox.h:317
hash mapo
the hash of output records for key order
Definition: Mapper.qm.dox.h:323
list< hash > mapBulk(int size)
performs bulk mapping; if the iterator does not support bulk mapping then it is simulated in this met...
*string number_format
the global number format for parsing numbers
Definition: Mapper.qm.dox.h:359
abstract base class for hash iterator mappping classes based on a mapper object and an iterator input...
Definition: Mapper.qm.dox.h:740
*list identl
list of fields to be mapped 1:1 input -> output
Definition: Mapper.qm.dox.h:384
hash identh
map of fields to be mapped 1:1 input -> output
Definition: Mapper.qm.dox.h:381
*Qore::TimeZone timezone
an optional timezone for output date fields
Definition: Mapper.qm.dox.h:341
constructor(Qore::AbstractIterator iter)
creates the iterator from the arguments passed
*hash output
an optional description of the output data structure
Definition: Mapper.qm.dox.h:365
the Mapper namespace contains all the definitions in the Mapper module
Definition: Mapper.qm.dox.h:249
bool hasBulk()
returns True if the iterator supports bulk mode; this method returns False (the default) ...
*string name
the optional name for the object (for example a table name); will be prepended to field names in erro...
Definition: Mapper.qm.dox.h:329
*hash input
an optional description of possible input hash keys
Definition: Mapper.qm.dox.h:362
*code input_log
an optional input data logging callback; must accept a hash giving the input data hash ...
Definition: Mapper.qm.dox.h:335
hash rconsth
map of constant runtime fields
Definition: Mapper.qm.dox.h:390
bool valid()
returns True if the iterator is currently pointing at a valid element, False if not ...
*hash m_runtime
current runtime values
Definition: Mapper.qm.dox.h:373