171 string enc =
"utf-8";
211 "input_timezone":
True,
268 private constructor();
272 private setup(
hash map, *
hash opts);
280 private convertToHash(
int t,
string k, reference fh);
287 private checkMapField(
string k, reference fh, *
hash th);
291 private bool hasMapping(
hash fh);
295 private checkTimezoneOption(
hash opts,
string rn);
298 string getFieldName(
string name);
329 list mapAll(softlist recs);
359 private mapFieldType(
string key,
hash m, reference v,
hash rec);
363 private error(
string fmt);
367 private error2(
string ex,
string fmt);
371 private any mapSubclass(
hash m, any v);
Qore::AbstractIterator i
input iterator; AbstractIterator::getValue() must return a hash
Definition: Mapper.qm.dox.h:385
constructor(Qore::AbstractIterator i)
creates the iterator from the arguments passed
bool next()
Moves the current position of the input iterator to the next element; returns False if there are no m...
*code output_log
an optional output data logging callback; must accept a hash giving the output data hash ...
Definition: Mapper.qm.dox.h:183
provides a hash iterator based on a mapper object and an iterator input source
Definition: Mapper.qm.dox.h:406
this class is a base class for mapping data; see Mapper Examples for usage examples ...
Definition: Mapper.qm.dox.h:158
hash getValue()
returns the current row transformed with the mapper
constructor(Qore::AbstractIterator i, hash map, *hash opts)
creates the iterator from the arguments passed
abstract base class for hash iterator mappping classes based on a mapper object and an iterator input...
Definition: Mapper.qm.dox.h:376
*Qore::TimeZone timezone
an optional timezone for output date fields
Definition: Mapper.qm.dox.h:186
*hash crec
constant hash value for output mappings
Definition: Mapper.qm.dox.h:198
*code trunc
an optional field truncation callback
Definition: Mapper.qm.dox.h:177
Mapper::Mapper map
data mapper
Definition: Mapper.qm.dox.h:415
*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:174
int getCount()
returns the internal record count
hash map
the hash providing output field names and mappings
Definition: Mapper.qm.dox.h:168
*code input_log
an optional input data logging callback; must accept a hash giving the input data hash ...
Definition: Mapper.qm.dox.h:180
bool valid()
returns True if the input iterator is currently pointing at a valid element, False if not ...
resetCount()
resets the internal record count