Type Alias arrow_array::builder::GenericBinaryBuilder
source · pub type GenericBinaryBuilder<O> = GenericByteBuilder<GenericBinaryType<O>>;
Expand description
Array builder for GenericBinaryArray
Values can be appended using GenericByteBuilder::append_value
, and nulls with
GenericByteBuilder::append_null
.
§Example
let mut builder = GenericBinaryBuilder::<i32>::new();
// Write data
builder.append_value("foo");
// Write second value
builder.append_value(&[0,1,2]);
let array = builder.finish();
// binary values
assert_eq!(array.value(0), b"foo");
assert_eq!(array.value(1), b"\x00\x01\x02");
Aliased Type§
struct GenericBinaryBuilder<O> { /* private fields */ }