pub struct PyGeoArrayReader { /* private fields */ }Expand description
Python wrapper for a GeoArrow array reader (stream).
This type represents a stream of GeoArrow arrays that can be read incrementally. It implements the Arrow C Stream Interface, allowing zero-copy data exchange with Arrow-compatible Python libraries.
The reader can be iterated over to yield individual PyGeoArray chunks, or materialized
into a PyGeoChunkedArray using the into_chunked_array()
method. For stream processing, prefer into_reader().
Implementations§
Source§impl PyGeoArrayReader
impl PyGeoArrayReader
Sourcepub fn new(reader: Box<dyn GeoArrowArrayReader + Send>) -> Self
pub fn new(reader: Box<dyn GeoArrowArrayReader + Send>) -> Self
Create a new PyGeoArrayReader from a GeoArrow array reader.
Sourcepub fn from_arrow_pycapsule(
capsule: &Bound<'_, PyCapsule>,
) -> PyGeoArrowResult<Self>
pub fn from_arrow_pycapsule( capsule: &Bound<'_, PyCapsule>, ) -> PyGeoArrowResult<Self>
Import from a raw Arrow C Stream capsule
Sourcepub fn data_type(&self) -> &GeoArrowType
pub fn data_type(&self) -> &GeoArrowType
Get the GeoArrow data type of arrays in this stream.
Sourcepub fn into_reader(self) -> PyResult<Box<dyn GeoArrowArrayReader + Send>>
pub fn into_reader(self) -> PyResult<Box<dyn GeoArrowArrayReader + Send>>
Consume this reader and convert into a ArrayReader.
The reader can only be consumed once. Calling into_reader
Sourcepub fn into_chunked_array(self) -> PyGeoArrowResult<PyGeoChunkedArray>
pub fn into_chunked_array(self) -> PyGeoArrowResult<PyGeoChunkedArray>
Consume this reader and create a PyGeoChunkedArray object
Trait Implementations§
Source§impl<'py> FromPyObject<'_, 'py> for PyGeoArrayReader
impl<'py> FromPyObject<'_, 'py> for PyGeoArrayReader
Source§impl<'py> IntoPyObject<'py> for PyGeoArrayReader
impl<'py> IntoPyObject<'py> for PyGeoArrayReader
Source§type Target = PyGeoArrayReader
type Target = PyGeoArrayReader
Source§type Output = Bound<'py, <PyGeoArrayReader as IntoPyObject<'py>>::Target>
type Output = Bound<'py, <PyGeoArrayReader as IntoPyObject<'py>>::Target>
Source§fn into_pyobject(
self,
py: Python<'py>,
) -> Result<<Self as IntoPyObject<'_>>::Output, <Self as IntoPyObject<'_>>::Error>
fn into_pyobject( self, py: Python<'py>, ) -> Result<<Self as IntoPyObject<'_>>::Output, <Self as IntoPyObject<'_>>::Error>
Source§impl PyClass for PyGeoArrayReader
impl PyClass for PyGeoArrayReader
Source§impl PyClassBaseType for PyGeoArrayReader
impl PyClassBaseType for PyGeoArrayReader
type LayoutAsBase = <PyGeoArrayReader as PyClassImpl>::Layout
type BaseNativeType = <PyGeoArrayReader as PyClassImpl>::BaseNativeType
type Initializer = PyClassInitializer<PyGeoArrayReader>
type PyClassMutability = <PyGeoArrayReader as PyClassImpl>::PyClassMutability
Source§type Layout<T: PyClassImpl> = <<PyGeoArrayReader as PyClassBaseType>::BaseNativeType as PyClassBaseType>::Layout<T>
type Layout<T: PyClassImpl> = <<PyGeoArrayReader as PyClassBaseType>::BaseNativeType as PyClassBaseType>::Layout<T>
Source§impl PyClassImpl for PyGeoArrayReader
impl PyClassImpl for PyGeoArrayReader
Source§const IS_BASETYPE: bool = true
const IS_BASETYPE: bool = true
Source§const IS_SUBCLASS: bool = false
const IS_SUBCLASS: bool = false
Source§const IS_MAPPING: bool = false
const IS_MAPPING: bool = false
Source§const IS_SEQUENCE: bool = false
const IS_SEQUENCE: bool = false
Source§const IS_IMMUTABLE_TYPE: bool = false
const IS_IMMUTABLE_TYPE: bool = false
Source§const RAW_DOC: &'static CStr = /// Python wrapper for a GeoArrow array reader (stream).
///
/// This type represents a stream of GeoArrow arrays that can be read incrementally. It implements
/// the Arrow C Stream Interface, allowing zero-copy data exchange with Arrow-compatible Python
/// libraries.
///
/// The reader can be iterated over to yield individual [`PyGeoArray`] chunks, or materialized
/// into a [`PyGeoChunkedArray`] using the [`into_chunked_array()`][Self::into_chunked_array]
/// method. For stream processing, prefer [`into_reader()`][Self::into_reader].
const RAW_DOC: &'static CStr = /// Python wrapper for a GeoArrow array reader (stream). /// /// This type represents a stream of GeoArrow arrays that can be read incrementally. It implements /// the Arrow C Stream Interface, allowing zero-copy data exchange with Arrow-compatible Python /// libraries. /// /// The reader can be iterated over to yield individual [`PyGeoArray`] chunks, or materialized /// into a [`PyGeoChunkedArray`] using the [`into_chunked_array()`][Self::into_chunked_array] /// method. For stream processing, prefer [`into_reader()`][Self::into_reader].
Source§const DOC: &'static CStr
const DOC: &'static CStr
text_signature if a constructor is defined. Read moreSource§type Layout = <<PyGeoArrayReader as PyClassImpl>::BaseNativeType as PyClassBaseType>::Layout<PyGeoArrayReader>
type Layout = <<PyGeoArrayReader as PyClassImpl>::BaseNativeType as PyClassBaseType>::Layout<PyGeoArrayReader>
Source§type ThreadChecker = NoopThreadChecker
type ThreadChecker = NoopThreadChecker
Source§type PyClassMutability = <<PyAny as PyClassBaseType>::PyClassMutability as PyClassMutability>::ImmutableChild
type PyClassMutability = <<PyAny as PyClassBaseType>::PyClassMutability as PyClassMutability>::ImmutableChild
Source§type BaseNativeType = PyAny
type BaseNativeType = PyAny
PyAny by default, and when you declare
#[pyclass(extends=PyDict)], it’s PyDict.fn items_iter() -> PyClassItemsIter
fn lazy_type_object() -> &'static LazyTypeObject<Self>
Source§fn dict_offset() -> Option<PyObjectOffset>
fn dict_offset() -> Option<PyObjectOffset>
Source§fn weaklist_offset() -> Option<PyObjectOffset>
fn weaklist_offset() -> Option<PyObjectOffset>
Source§impl PyMethods<PyGeoArrayReader> for PyClassImplCollector<PyGeoArrayReader>
impl PyMethods<PyGeoArrayReader> for PyClassImplCollector<PyGeoArrayReader>
fn py_methods(self) -> &'static PyClassItems
Source§impl PyTypeInfo for PyGeoArrayReader
impl PyTypeInfo for PyGeoArrayReader
Source§const NAME: &str = <Self as ::pyo3::PyClass>::NAME
const NAME: &str = <Self as ::pyo3::PyClass>::NAME
prefer using ::type_object(py).name() to get the correct runtime value
Source§const MODULE: Option<&str> = <Self as ::pyo3::impl_::pyclass::PyClassImpl>::MODULE
const MODULE: Option<&str> = <Self as ::pyo3::impl_::pyclass::PyClassImpl>::MODULE
prefer using ::type_object(py).module() to get the correct runtime value
Source§fn type_object_raw(py: Python<'_>) -> *mut PyTypeObject
fn type_object_raw(py: Python<'_>) -> *mut PyTypeObject
Source§fn type_object(py: Python<'_>) -> Bound<'_, PyType>
fn type_object(py: Python<'_>) -> Bound<'_, PyType>
Source§impl TryFrom<Box<dyn ArrayReader<Item = Result<Arc<dyn Array>, ArrowError>> + Send>> for PyGeoArrayReader
impl TryFrom<Box<dyn ArrayReader<Item = Result<Arc<dyn Array>, ArrowError>> + Send>> for PyGeoArrayReader
Source§impl TryFrom<PyArrayReader> for PyGeoArrayReader
impl TryFrom<PyArrayReader> for PyGeoArrayReader
Source§type Error = PyGeoArrowError
type Error = PyGeoArrowError
impl DerefToPyAny for PyGeoArrayReader
impl ExtractPyClassWithClone for PyGeoArrayReader
Auto Trait Implementations§
impl !Freeze for PyGeoArrayReader
impl RefUnwindSafe for PyGeoArrayReader
impl Send for PyGeoArrayReader
impl Sync for PyGeoArrayReader
impl Unpin for PyGeoArrayReader
impl UnsafeUnpin for PyGeoArrayReader
impl UnwindSafe for PyGeoArrayReader
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<'py, T> IntoPyObjectExt<'py> for Twhere
T: IntoPyObject<'py>,
impl<'py, T> IntoPyObjectExt<'py> for Twhere
T: IntoPyObject<'py>,
Source§fn into_bound_py_any(self, py: Python<'py>) -> Result<Bound<'py, PyAny>, PyErr>
fn into_bound_py_any(self, py: Python<'py>) -> Result<Bound<'py, PyAny>, PyErr>
self into an owned Python object, dropping type information.Source§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> PyErrArguments for T
impl<T> PyErrArguments for T
Source§impl<T> PyTypeCheck for Twhere
T: PyTypeInfo,
impl<T> PyTypeCheck for Twhere
T: PyTypeInfo,
Source§const NAME: &'static str = T::NAME
const NAME: &'static str = T::NAME
Use ::classinfo_object() instead and format the type name at runtime. Note that using built-in cast features is often better than manual PyTypeCheck usage.