Trait geoarrow::trait_::GeometryArrayBuilder
source · 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§
sourcefn validity(&self) -> &NullBufferBuilder
fn validity(&self) -> &NullBufferBuilder
The optional validity of the array.
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>
sourcefn coord_type(&self) -> CoordType
fn coord_type(&self) -> CoordType
Get the coordinate type of this geometry array, either interleaved or separated.
fn metadata(&self) -> Arc<ArrayMetadata>
fn into_array_ref(self) -> Arc<dyn Array>
Provided Methods§
fn with_geom_capacity(geom_capacity: usize) -> Self
Object Safety§
This trait is not object safe.