pub struct WktViewArray { /* private fields */ }
Expand description
An immutable array of WKT geometries.
This is stored as an Arrow StringViewArray
and is semantically equivalent to
Vec<Option<Wkt>>
due to the internal validity bitmap.
Refer to crate::cast
for converting this array to other GeoArrow array types.
Implementations§
Source§impl WktViewArray
impl WktViewArray
Sourcepub fn new(array: StringViewArray, metadata: Arc<Metadata>) -> Self
pub fn new(array: StringViewArray, metadata: Arc<Metadata>) -> Self
Create a new WktViewArray from a StringViewArray
Sourcepub fn inner(&self) -> &StringViewArray
pub fn inner(&self) -> &StringViewArray
Access the underlying string array.
Sourcepub fn with_metadata(&self, metadata: Arc<Metadata>) -> Self
pub fn with_metadata(&self, metadata: Arc<Metadata>) -> Self
Replace the Metadata in the array with the given metadata
Trait Implementations§
Source§impl Clone for WktViewArray
impl Clone for WktViewArray
Source§fn clone(&self) -> WktViewArray
fn clone(&self) -> WktViewArray
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for WktViewArray
impl Debug for WktViewArray
Source§impl From<(GenericByteViewArray<StringViewType>, WktType)> for WktViewArray
impl From<(GenericByteViewArray<StringViewType>, WktType)> for WktViewArray
Source§fn from((value, typ): (StringViewArray, WktType)) -> Self
fn from((value, typ): (StringViewArray, WktType)) -> Self
Converts to this type from the input type.
Source§impl<O: OffsetSizeTrait> From<GenericWktArray<O>> for WktViewArray
impl<O: OffsetSizeTrait> From<GenericWktArray<O>> for WktViewArray
Source§fn from(value: GenericWktArray<O>) -> Self
fn from(value: GenericWktArray<O>) -> Self
Converts to this type from the input type.
Source§impl<O: OffsetSizeTrait> From<WktViewArray> for GenericWktArray<O>
impl<O: OffsetSizeTrait> From<WktViewArray> for GenericWktArray<O>
Source§fn from(value: WktViewArray) -> Self
fn from(value: WktViewArray) -> Self
Converts to this type from the input type.
Source§impl GeoArrowArray for WktViewArray
impl GeoArrowArray for WktViewArray
Source§fn into_array_ref(self) -> ArrayRef
fn into_array_ref(self) -> ArrayRef
Source§fn logical_nulls(&self) -> Option<NullBuffer>
fn logical_nulls(&self) -> Option<NullBuffer>
Returns a potentially computed `NullBuffer`` that represents the logical null values of
this array, if any. Read more
Source§fn logical_null_count(&self) -> usize
fn logical_null_count(&self) -> usize
Returns the number of null slots in this array. Read more
Source§fn data_type(&self) -> GeoArrowType
fn data_type(&self) -> GeoArrowType
Returns the
GeoArrowType
of this array. Read moreSource§fn slice(&self, offset: usize, length: usize) -> Arc<dyn GeoArrowArray>
fn slice(&self, offset: usize, length: usize) -> Arc<dyn GeoArrowArray>
Returns a zero-copy slice of this array with the indicated offset and length. Read more
Source§fn with_metadata(self, metadata: Arc<Metadata>) -> Arc<dyn GeoArrowArray>
fn with_metadata(self, metadata: Arc<Metadata>) -> Arc<dyn GeoArrowArray>
Change the
Metadata
of this array.Source§impl<'a> GeoArrowArrayAccessor<'a> for WktViewArray
impl<'a> GeoArrowArrayAccessor<'a> for WktViewArray
Source§type Item = Wkt
type Item = Wkt
The geoarrow scalar object for this geometry array type.
Source§unsafe fn value_unchecked(&'a self, index: usize) -> GeoArrowResult<Self::Item>
unsafe fn value_unchecked(&'a self, index: usize) -> GeoArrowResult<Self::Item>
Returns the element at index
i
, not considering validity. Read moreSource§fn value(&'a self, index: usize) -> GeoArrowResult<Self::Item>
fn value(&'a self, index: usize) -> GeoArrowResult<Self::Item>
Returns the element at index
i
, not considering validity. Read moreSource§fn get(&'a self, index: usize) -> GeoArrowResult<Option<Self::Item>>
fn get(&'a self, index: usize) -> GeoArrowResult<Option<Self::Item>>
Returns the value at slot
i
as an Arrow scalar, considering validity. Read moreSource§unsafe fn get_unchecked(
&'a self,
index: usize,
) -> Option<GeoArrowResult<Self::Item>>
unsafe fn get_unchecked( &'a self, index: usize, ) -> Option<GeoArrowResult<Self::Item>>
Returns the value at slot
i
as an Arrow scalar, considering validity. Read moreSource§fn iter(
&'a self,
) -> impl ExactSizeIterator<Item = Option<GeoArrowResult<Self::Item>>> + 'a
fn iter( &'a self, ) -> impl ExactSizeIterator<Item = Option<GeoArrowResult<Self::Item>>> + 'a
Iterates over this array’s geoarrow scalar values, considering validity. Read more
Source§fn iter_values(
&'a self,
) -> impl ExactSizeIterator<Item = GeoArrowResult<Self::Item>> + 'a
fn iter_values( &'a self, ) -> impl ExactSizeIterator<Item = GeoArrowResult<Self::Item>> + 'a
Iterator over geoarrow scalar values, not considering validity. Read more
Source§impl IntoArrow for WktViewArray
impl IntoArrow for WktViewArray
Source§type ArrowArray = GenericByteViewArray<StringViewType>
type ArrowArray = GenericByteViewArray<StringViewType>
The type of arrow array that this geoarrow array can be converted into.
Source§type ExtensionType = WktType
type ExtensionType = WktType
The extension type representing this array. It will always be a type defined by
geoarrow_schema.
Source§fn into_arrow(self) -> Self::ArrowArray
fn into_arrow(self) -> Self::ArrowArray
Converts this geoarrow array into an arrow array. Read more
Source§fn extension_type(&self) -> &Self::ExtensionType
fn extension_type(&self) -> &Self::ExtensionType
Return the Arrow extension type representing this array.
Source§impl PartialEq for WktViewArray
impl PartialEq for WktViewArray
Source§impl TryFrom<(&dyn Array, &Field)> for WktViewArray
impl TryFrom<(&dyn Array, &Field)> for WktViewArray
Source§type Error = GeoArrowError
type Error = GeoArrowError
The type returned in the event of a conversion error.
Source§impl TryFrom<(&dyn Array, WktType)> for WktViewArray
impl TryFrom<(&dyn Array, WktType)> for WktViewArray
Source§type Error = GeoArrowError
type Error = GeoArrowError
The type returned in the event of a conversion error.
impl GenericWktArrayType for WktViewArray
impl StructuralPartialEq for WktViewArray
Auto Trait Implementations§
impl Freeze for WktViewArray
impl RefUnwindSafe for WktViewArray
impl Send for WktViewArray
impl Sync for WktViewArray
impl Unpin for WktViewArray
impl UnwindSafe for WktViewArray
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more