(k: &[CoordKey])
| 126 | } |
| 127 | |
| 128 | fn decode_key(k: &[CoordKey]) -> Vec<CoordValue> { |
| 129 | k.iter() |
| 130 | .map(|v| match v { |
| 131 | CoordKey::I(x) => CoordValue::Int64(*x), |
| 132 | CoordKey::Ts(x) => CoordValue::TimestampMs(*x), |
| 133 | CoordKey::F(b) => CoordValue::Float64(f64::from_bits(*b)), |
| 134 | CoordKey::S(s) => CoordValue::String(s.clone()), |
| 135 | }) |
| 136 | .collect() |
| 137 | } |
| 138 | |
| 139 | fn index_rows(tile: &SparseTile) -> BTreeMap<Vec<CoordKey>, Vec<CellValue>> { |
| 140 | let mut out = BTreeMap::new(); |
no test coverage detected