pub trait GeometryArrayBuilder: Debug + Send + Sync + Sized {
    // Required methods
    fn len(&self) -> usize;
    fn validity(&self) -> &NullBufferBuilder;
    fn new() -> Self;
    fn with_geom_capacity_and_options(
        geom_capacity: usize,
        coord_type: CoordType,
        metadata: Arc<ArrayMetadata>
    ) -> Self;
    fn set_metadata(&mut self, metadata: Arc<ArrayMetadata>);
    fn finish(self) -> Arc<dyn GeometryArrayTrait>;
    fn coord_type(&self) -> CoordType;
    fn metadata(&self) -> Arc<ArrayMetadata>;
    fn into_array_ref(self) -> Arc<dyn Array>;

    // Provided methods
    fn is_empty(&self) -> bool { ... }
    fn with_geom_capacity(geom_capacity: usize) -> Self { ... }
}
Expand description

A trait describing a mutable geometry array; i.e. an array whose values can be changed. Mutable arrays cannot be cloned but can be mutated in place, thereby making them useful to perform numeric operations without allocations. As in GeometryArrayTrait, concrete arrays (such as PointBuilder) implement how they are mutated.

Required Methods§

source

fn len(&self) -> usize

The length of the array.

source

fn validity(&self) -> &NullBufferBuilder

The optional validity of the array.

source

fn new() -> Self

source

fn with_geom_capacity_and_options( geom_capacity: usize, coord_type: CoordType, metadata: Arc<ArrayMetadata> ) -> Self

source

fn set_metadata(&mut self, metadata: Arc<ArrayMetadata>)

source

fn finish(self) -> Arc<dyn GeometryArrayTrait>

source

fn coord_type(&self) -> CoordType

Get the coordinate type of this geometry array, either interleaved or separated.

source

fn metadata(&self) -> Arc<ArrayMetadata>

source

fn into_array_ref(self) -> Arc<dyn Array>

Provided Methods§

source

fn is_empty(&self) -> bool

Whether the array is empty.

source

fn with_geom_capacity(geom_capacity: usize) -> Self

Object Safety§

This trait is not object safe.

Implementors§