[][src]Trait arrow::builder::BufferBuilderTrait

pub trait BufferBuilderTrait<T: ArrowPrimitiveType> {
    fn new(capacity: usize) -> Self;
fn len(&self) -> usize;
fn capacity(&self) -> usize;
fn advance(&mut self, i: usize) -> Result<()>;
fn reserve(&mut self, n: usize) -> Result<()>;
fn push(&mut self, v: T::Native) -> Result<()>;
fn push_slice(&mut self, slice: &[T::Native]) -> Result<()>;
fn finish(self) -> Buffer; }

Required methods

Loading content...

Implementors

impl BufferBuilderTrait<BooleanType> for BufferBuilder<BooleanType>
[src]

Creates a builder with a fixed initial capacity.

Pushes a value into the builder, growing the internal buffer as needed.

Pushes a slice of type T, growing the internal buffer as needed.

Reserves memory for n elements of type T.

Consumes this and returns an immutable Buffer.

impl<T: ArrowPrimitiveType> BufferBuilderTrait<T> for BufferBuilder<T>
[src]

Creates a builder with a fixed initial capacity

Returns the number of array elements (slots) in the builder

Returns the current capacity of the builder (number of elements)

Reserves memory for n elements of type T.

Pushes a value into the builder, growing the internal buffer as needed.

Pushes a slice of type T, growing the internal buffer as needed.

Consumes this builder and returns an immutable Buffer.

Loading content...