MCPcopy Create free account
hub / github.com/apache/arrow-rs / create_nullable_struct

Function create_nullable_struct

arrow/benches/json_writer.rs:84–91  ·  view source on GitHub ↗
(len: usize)

Source from the content-addressed store, hash-verified

82}
83
84fn create_nullable_struct(len: usize) -> StructArray {
85 let c2 = StructArray::from(create_mixed(len));
86 StructArray::new(
87 c2.fields().clone(),
88 c2.columns().to_vec(),
89 Some(create_nulls(c2.len())),
90 )
91}
92
93fn bench_float(c: &mut Criterion) {
94 let c1 = Arc::new(create_primitive_array::<Float32Type>(NUM_ROWS, 0.));

Callers 2

bench_nullable_structFunction · 0.85
bench_struct_listFunction · 0.85

Calls 6

create_mixedFunction · 0.85
create_nullsFunction · 0.85
cloneMethod · 0.45
fieldsMethod · 0.45
columnsMethod · 0.45
lenMethod · 0.45

Tested by

no test coverage detected