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

Method create_array_from_builder

arrow-ipc/src/reader.rs:300–307  ·  view source on GitHub ↗

Update the ArrayDataBuilder based on settings in this decoder

(&self, builder: ArrayDataBuilder)

Source from the content-addressed store, hash-verified

298
299 /// Update the ArrayDataBuilder based on settings in this decoder
300 fn create_array_from_builder(&self, builder: ArrayDataBuilder) -> Result<ArrayRef, ArrowError> {
301 let mut builder = builder.align_buffers(!self.require_alignment);
302 if self.skip_validation.get() {
303 // SAFETY: flag can only be set via unsafe code
304 unsafe { builder = builder.skip_validation(true) }
305 };
306 Ok(make_array(builder.build()?))
307 }
308
309 /// Reads the correct number of buffers based on list type and null_count, and creates a
310 /// list array ref

Callers 5

create_arrayMethod · 0.80
create_list_arrayMethod · 0.80

Calls 5

align_buffersMethod · 0.80
skip_validationMethod · 0.80
make_arrayFunction · 0.50
getMethod · 0.45
buildMethod · 0.45

Tested by

no test coverage detected