60 "desc":
"a code block for generating the field output programmatically",
61 "value_type":
"mapper-code",
64 "desc":
"a constant value for the output field",
66 "requires_field_type": True,
70 "desc":
"the default value for the field if no input is provided",
72 "requires_field_type": True,
75 "desc":
"the index number of the row; an integer value will be added to the current row number, a string "
76 "will be prepended to the current row number",
81 "desc":
"the name of the input field; dot notation accepted",
82 "value_type":
"string",
83 "unique_roles":
"value",
86 "desc":
"the name of the field in the runtime hash where to take the value from",
87 "value_type":
"string",
91 "desc":
"the name or identifier of a submapper that will provide a list of values for this field (cannot "
92 "be used with bulk APIs)",
93 "value_type":
"string",
94 "unique_roles":
"submapper",
97 "desc":
"use the input provider from the submapper for the output of the field; requires "
98 "\"submapper_options\" to provide input configuration for the submapper",
100 "requires_roles": (
"submapper",
"submapper_options"),
103 "desc":
"allows a parent mapper to affect the options of the submapper based on current data; use "
104 "\"$local:input.<field>\" to refer to mapped data in the current parent mapper input row to affect "
106 "value_type":
"hash",
107 "unique_roles": (
"submapper_options"),
108 "requires_roles":
"submapper",
111 "desc":
"if True and the input is longer than the output field permits, the input will be "
112 "silently truncated",
113 "value_type":
"bool",
116 "desc":
"a hash of type options; this must correspond to option values for the output data type",
117 "value_type":
"option_hash",
120 "desc":
"The entire input record will be used for the output field mapping; only compatible with hash "
122 "value_type":
"bool",
124 "returns_type":
"hash",
All the definitions in the MapperUtil module are contained in the Mapper namespace.
Definition: MapperUtil.qm.dox.h:56
const MapperKeyInfo
Mapper standard field key info hash.
Definition: MapperUtil.qm.dox.h:58
Describes a runtime mapper field key.
Definition: MapperUtil.qm.dox.h:129
*string returns_type
If the key provides a value that returns a specific type.
Definition: MapperUtil.qm.dox.h:152
*hash< string, bool > conflicting_keys
Hash of conflicting keys, if any.
Definition: MapperUtil.qm.dox.h:137
*softlist< string > requires_roles
If the key can only be used if one or more other keys supplying the given roles are also present.
Definition: MapperUtil.qm.dox.h:149
bool requires_field_type
If the type of the value for the key must be the same as the field type.
Definition: MapperUtil.qm.dox.h:140
*softlist< string > unique_roles
If the key provides some unique functionality.
Definition: MapperUtil.qm.dox.h:146
*code handler
The code to handle the key at runtime.
Definition: MapperUtil.qm.dox.h:178
string value_type
The type of value that must be assigned to this key.
Definition: MapperUtil.qm.dox.h:134
string desc
A description of the key.
Definition: MapperUtil.qm.dox.h:131