Skip to content

UsagiMap

mapping category: vocabulary supports `||` resultSize: N

Maps the input to a concept id using a Usagi map file.

Looks up the input in the named Usagi file and returns the matching concept id(s). If the same key appears multiple times in the Usagi map, all matching output values can be emitted as a multi-sized result.

Parameters

1file Mandatory — accepts: STRING

The Usagi file name relative to the directory pointed to by the usagi directory clause in the ETL-Engine configuration file.

2default Optional — accepts: any

Default value used when no match is found in the Usagi file.

Input type

  • DATE
  • FLOAT
  • INT
  • STRING

Output type

  • INT[]

Requires

  • Allows multi-sized results.

Examples

Single-result mapping

UsagiMap("usagi-file.csv")

With default value

UsagiMap("map.csv", 0)

Multi-sized result, unlimited

UsagiMap("multi-sized-map.csv")[]

Multi-sized result, limited to 5

UsagiMap("multi-sized-limited-map.csv")[5]

See also

VocabMap, VocabSourceId, Map