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

Method finish

arrow-buffer/src/builder/null.rs:210–213  ·  view source on GitHub ↗

Builds the [`NullBuffer`] and resets the builder. Returns `None` if the builder only contains `true`s. Use [`Self::build`] when you don't need to reuse this builder.

(&mut self)

Source from the content-addressed store, hash-verified

208 /// Returns `None` if the builder only contains `true`s. Use [`Self::build`]
209 /// when you don't need to reuse this builder.
210 pub fn finish(&mut self) -> Option<NullBuffer> {
211 self.len = 0;
212 Some(NullBuffer::new(self.bitmap_builder.take()?.build()))
213 }
214
215 /// Builds the [`NullBuffer`] without resetting the builder.
216 ///

Calls 2

buildMethod · 0.45
takeMethod · 0.45