Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
BinaryViewBuilder in datafusion::common::arrow::array - Rust
[go: Go Back, main page]

Type Alias 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§

pub struct BinaryViewBuilder { /* private fields */ }