pub type StringViewBuilder = GenericByteViewBuilder<StringViewType>;
Expand description
Array builder for StringViewArray
Values can be appended using GenericByteViewBuilder::append_value
, and nulls with
GenericByteViewBuilder::append_null
as normal.
§Example
let mut builder = StringViewBuilder::new();
builder.append_value("hello");
builder.append_null();
builder.append_value("world");
let array = builder.finish();
let expected = vec![Some("hello"), None, Some("world")];
let actual: Vec<_> = array.iter().collect();
assert_eq!(expected, actual);
Aliased Type§
struct StringViewBuilder { /* private fields */ }