Skip to main content
Rust4PM

MappingStats

Counts for one mapping's run.
Used as Input

0

functions accept this type

Used as Output

0

functions return this type(+2 nested)

Type Definition

11 nested items
struct— Counts for one mapping's run.
deduplicated*:u64— Rows that tried to create an entity the sink already had. Not a loss: an object mapping
dropped*:HashMap<String, u64>— Rows dropped, by reason. A row that matches several reasons at once (rare) is counted
[key: string]:u64
entities_emitted*:u64— Entities or relations this mapping handed to the sink, which is not the same as
mapping*:MappingRef— Points a diagnostic back at the mapping it came from.
describes*:String— What this mapping produces, derived from its target: event "appoint officer",
index*:i64<uint>— Position in the desugared, flattened mapping list this run executed.
label:Option<String>— The mapping's own label, if it has one.
path*:String— The JSON path of the authored entry this mapping came from (see desugar_with_paths), so
rows_read*:u64— Rows the mapping's node produced, before when was applied.
uncoercible_attributes:u64— Attribute values that would not convert to their attribute's declared type, stored as

Example JSON Value

json
{
  "deduplicated": 1,
  "dropped": {
    "something": 1
  },
  "entities_emitted": 1,
  "mapping": {
    "describes": "example",
    "index": 1,
    "path": "example"
  },
  "rows_read": 1
}