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

Method append

src/repr/src/row/encode.rs:1466–1480  ·  view source on GitHub ↗
(&mut self, val: &Row)

Source from the content-addressed store, hash-verified

1464 }
1465
1466 fn append(&mut self, val: &Row) {
1467 let mut num_datums = 0;
1468 for (datum, encoder) in val.iter().zip_eq(self.encoders.iter_mut()) {
1469 encoder.push(datum);
1470 num_datums += 1;
1471 }
1472 assert_eq!(
1473 num_datums,
1474 self.encoders.len(),
1475 "tried to encode {val:?}, but only have {:?}",
1476 self.encoders
1477 );
1478
1479 self.nullability.append(true);
1480 }
1481
1482 fn append_null(&mut self) {
1483 for encoder in self.encoders.iter_mut() {

Callers 8

pushMethod · 0.45
push_invalidMethod · 0.45
append_nullMethod · 0.45
roundtrip_rowsFunction · 0.45
smoketest_rowFunction · 0.45
test_nested_listFunction · 0.45
test_recordFunction · 0.45
smoketest_projectionFunction · 0.45

Calls 2

iterMethod · 0.45
pushMethod · 0.45

Tested by 2

test_nested_listFunction · 0.36
test_recordFunction · 0.36