Trait exon_common::ExonArrayBuilder

source ·
pub trait ExonArrayBuilder {
    // Required methods
    fn finish(&mut self) -> Vec<ArrayRef>;
    fn len(&self) -> usize;

    // Provided methods
    fn try_into_record_batch(
        &mut self,
        schema: Arc<Schema>
    ) -> Result<RecordBatch> { ... }
    fn is_empty(&self) -> bool { ... }
}
Expand description

The ExonArrayBuilder trait defines the interface for building data arrays.

Required Methods§

source

fn finish(&mut self) -> Vec<ArrayRef>

Finishes building the internal data structures and returns the built arrays.

source

fn len(&self) -> usize

Returns the number of elements in the array.

Provided Methods§

source

fn try_into_record_batch(&mut self, schema: Arc<Schema>) -> Result<RecordBatch>

Creates a record batch from the built arrays.

source

fn is_empty(&self) -> bool

Returns true if the array contains no elements.

Implementors§