mapping mode
pattern: mappingmapping: # inputs, outputs, merge — contract in drtml/models/mappingDispatch (_PATTERN_RUNNERS["mapping"]) → run_mapping.
Runtime glue
Section titled “Runtime glue”processing/mapping_mode/run.py:
- compile
MappingPlan; - open
StorageSession; - call
framework.mapping.build(algorithm is not in the step); - emit metrics;
- write
output_manifests_jsonfor downstream.
Algorithms
Section titled “Algorithms”| Module | Role |
|---|---|
mapping/build.py |
merge |
mapping/remap.py |
id remap helpers |
mapping/read.py |
prefetch indexes (mapping_read) |
mapping/metrics.py |
emit (framework) |
DRTML + optional thin hooks re-export only.
Downstream: mapping_read → IdIndex → domain remap by id.
See Cookbook.