MCPcopy Create free account
hub / github.com/MaterializeInc/materialize / from

Method from

src/expr/src/row/collection.rs:390–403  ·  view source on GitHub ↗
(rows: T)

Source from the content-addressed store, hash-verified

388
389 impl<'a, T: IntoIterator<Item = &'a Row>> From<T> for RowCollection {
390 fn from(rows: T) -> Self {
391 let mut encoded = Rows::builder(0, 0);
392 let mut diffs = vec![];
393
394 for row in rows {
395 encoded.push(row.as_row_ref());
396 diffs.push(NonZeroUsize::MIN);
397 }
398
399 RowCollection {
400 rows: encoded.build(),
401 diffs: diffs.into(),
402 }
403 }
404 }
405
406 #[mz_ore::test]

Callers

nothing calls this directly

Calls 3

as_row_refMethod · 0.80
pushMethod · 0.45
buildMethod · 0.45

Tested by

no test coverage detected