pub struct FixedSizeBinaryBuilder { /* private fields */ }
Expand description

A fixed size binary array builder

use arrow_array::builder::FixedSizeBinaryBuilder;
use arrow_array::Array;

let mut builder = FixedSizeBinaryBuilder::with_capacity(3, 5);
// [b"hello", null, b"arrow"]
builder.append_value(b"hello").unwrap();
builder.append_null();
builder.append_value(b"arrow").unwrap();

let array = builder.finish();
assert_eq!(array.value(0), b"hello");
assert!(array.is_null(1));
assert_eq!(array.value(2), b"arrow");

Implementations§

Creates a new FixedSizeBinaryBuilder

Creates a new FixedSizeBinaryBuilder, capacity is the number of byte slices that can be appended without reallocating

Appends a byte slice into the builder.

Automatically update the null buffer to delimit the slice appended in as a distinct value element.

Append a null value to the array.

Builds the FixedSizeBinaryArray and reset this builder.

Builds the FixedSizeBinaryArray without resetting the builder.

Trait Implementations§

Returns the builder as a non-mutable Any reference.

Returns the builder as a mutable Any reference.

Returns the boxed builder as a box of Any.

Returns the number of array slots in the builder

Returns whether the number of array slots is zero

Builds the array and reset this builder.

Builds the array without resetting the builder.

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.