Build and optionally project a merged row.
(
outer: &[u8],
inner: Option<&[u8]>,
outer_alias: &str,
lateral_alias: &str,
projection: &[JoinProjection],
)
| 187 | |
| 188 | /// Build and optionally project a merged row. |
| 189 | pub(super) fn build_row( |
| 190 | outer: &[u8], |
| 191 | inner: Option<&[u8]>, |
| 192 | outer_alias: &str, |
| 193 | lateral_alias: &str, |
| 194 | projection: &[JoinProjection], |
| 195 | ) -> Vec<u8> { |
| 196 | let merged = merge_join_docs_binary(outer, inner, outer_alias, lateral_alias); |
| 197 | if projection.is_empty() { |
| 198 | merged |
| 199 | } else { |
| 200 | binary_row_project(&merged, projection) |
| 201 | } |
| 202 | } |
| 203 | |
| 204 | /// If `bytes` is a scan-row wrapper `{id: ..., data: ...}`, return the `data` |
| 205 | /// field's bytes. Otherwise return `bytes` as-is (already a plain map). |
no test coverage detected