Type Alias arrow::array::builder::BinaryViewBuilder
source · pub type BinaryViewBuilder = GenericByteViewBuilder<BinaryViewType>;
Expand description
Array builder for BinaryViewArray
Values can be appended using GenericByteViewBuilder::append_value
, and nulls with
GenericByteViewBuilder::append_null
as normal.
§Example
use arrow_array::BinaryViewArray;
let mut builder = BinaryViewBuilder::new();
builder.append_value("hello");
builder.append_null();
builder.append_value("world");
let array = builder.finish();
let expected: Vec<Option<&[u8]>> = vec![Some(b"hello"), None, Some(b"world")];
let actual: Vec<_> = array.iter().collect();
assert_eq!(expected, actual);
Aliased Type§
struct BinaryViewBuilder { /* private fields */ }