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

Function encode_structured2

src/repr/benches/row.rs:275–281  ·  view source on GitHub ↗
(schema: &RelationDesc, rows: &[Row])

Source from the content-addressed store, hash-verified

273}
274
275fn encode_structured2(schema: &RelationDesc, rows: &[Row]) -> Part {
276 let mut builder = PartBuilder::new(schema, &UnitSchema);
277 for row in rows.iter() {
278 builder.push(row, &(), 1u64, 1i64);
279 }
280 builder.finish()
281}
282
283fn random_option<T>(rng: &mut StdRng) -> Option<T>
284where

Callers 1

bench_roundtripFunction · 0.85

Calls 3

iterMethod · 0.45
pushMethod · 0.45
finishMethod · 0.45

Tested by

no test coverage detected