pub struct Built {
pub column: usize,
pub form: Form,
pub rows: u64,
pub distinct: bool,
pub bytes: usize,
pub column_bytes: u64,
pub built: bool,
pub build: Duration,
}Expand description
What building one key map cost and what it bought.
G1’s exit measurement in spec/graph/10-milestones.md wants build time and bytes reported per table, so the build reports them rather than being timed from outside. The form is here because it is the number that explains the bytes: an identity map over fifteen million rows is the same size as one over five.
Fields§
§column: usizeWhich column was mapped.
form: FormWhich of the three forms the measurement chose.
rows: u64Non-null keys in the column.
distinct: boolWhether every key was distinct, which is section 2.3’s verification and decides whether a link may be built on this column at all.
bytes: usizeWhat the map takes in the file, header included, or would have taken when it was not kept.
column_bytes: u64What the column it maps takes in the file, which is what the budget is a share of.
built: boolWhether the map was kept. False means it was built, measured, and found to cost more than section 3.7 allows, so the file does not have it and the query plans as though key maps had never been implemented.
build: DurationHow long the build took, the reading of the column included.