Struct polars_core::chunked_array::builder::BinaryChunkedBuilder
source · pub struct BinaryChunkedBuilder {
pub capacity: usize,
/* private fields */
}
Available on crate feature
dtype-binary
only.Fields§
§capacity: usize
Implementations§
source§impl BinaryChunkedBuilder
impl BinaryChunkedBuilder
sourcepub fn new(name: &str, capacity: usize, bytes_capacity: usize) -> Self
pub fn new(name: &str, capacity: usize, bytes_capacity: usize) -> Self
Create a new UtfChunkedBuilder
Arguments
capacity
- Number of string elements in the final array.bytes_capacity
- Number of bytes needed to store the string values.
sourcepub fn append_value<S: AsRef<[u8]>>(&mut self, v: S)
pub fn append_value<S: AsRef<[u8]>>(&mut self, v: S)
Appends a value of type T
into the builder
sourcepub fn append_null(&mut self)
pub fn append_null(&mut self)
Appends a null slot into the builder