Multi-value Fields
Each metadata field commonly stores only one value, e.g. one integer, one string, one date, etc. However, you can also set one field to carry more values of the same type.
Example 8. Example situations when you could take advantage of multivalue fields
A record containing an employee’s
ID, Name
andAddress
. Since employees move from time to time, you might need to keep track of all their addresses, both current and past. Instead of creating new metadata fields each time an employee moves to a new address, you can store a list of all addresses into one field.You are processing an input stream of
CSV
files, each containing a different column count. Normally, that would imply creating new metadata for each file (each column count). Instead, you can define a generic map or variant in metadata and append fields to it each time they occur.
As implied above, there are three types of structures:
list - is a set containing elements of a given data type (any you want). In source code, lists are marked by the [] brackets, for example:
map - is a pair of keys and their values. A key is always a string
while a value can be any data type - but you cannot mix them (remember a map holds values of the same type). Example:
variant - can contain any data type or complex data structure including list or map.
Last updated