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

Method finish

arrow-array/src/builder/null_builder.rs:87–93  ·  view source on GitHub ↗

Builds the [NullArray] and reset this builder.

(&mut self)

Source from the content-addressed store, hash-verified

85
86 /// Builds the [NullArray] and reset this builder.
87 pub fn finish(&mut self) -> NullArray {
88 let len = self.len();
89 let builder = ArrayData::new_null(&DataType::Null, len).into_builder();
90
91 let array_data = unsafe { builder.build_unchecked() };
92 NullArray::from(array_data)
93 }
94
95 /// Builds the [NullArray] without resetting the builder.
96 pub fn finish_cloned(&self) -> NullArray {

Callers 2

test_null_array_builderFunction · 0.45

Calls 3

lenMethod · 0.45
into_builderMethod · 0.45
build_uncheckedMethod · 0.45

Tested by 2

test_null_array_builderFunction · 0.36