Expand description
JSON-to-packed-document decomposition pipeline.
Decomposer walks a serde_json::Value tree depth-first, flattening
nested objects into dot-separated field paths (e.g., address.city). Each
leaf field is:
- Assigned a compact
FieldIdvia theIdRegistry, creating the mapping on first encounter. - Optionally dictionary-encoded through the collection’s
ValueDictionarywhen the field’s observed cardinality is low and the value meets the minimum length threshold. - Emitted as a
FieldValueinto aPackedDocBuilder.
Arrays and empty objects are stored as opaque JSON byte payloads
(FieldValue::ArrayBytes) to preserve exact round-trip fidelity. Field
names containing dots are rejected because dots serve as the path
separator in the flattened schema.
Structs§
- Decomposer
- JSON decomposer for one collection.
Enums§
- Decompose
Error - Errors returned when decomposing JSON into a packed document.