#[repr(transparent)]pub struct PyChunkedArray(pub SuperArray);Expand description
Transparent wrapper around MinArrow’s SuperArray.
Enables conversion to/from PyArrow ChunkedArray. A PyArrow ChunkedArray contains multiple array chunks, equivalent to MinArrow’s SuperArray.
§Example (Rust)
ⓘ
use minarrow_pyo3::PyChunkedArray;
use minarrow::SuperArray;
#[pyfunction]
fn process_chunked(arr: PyChunkedArray) -> PyResult<PyChunkedArray> {
let super_array: SuperArray = arr.into();
// Process...
Ok(PyChunkedArray::from(super_array))
}Tuple Fields§
§0: SuperArrayImplementations§
Source§impl PyChunkedArray
impl PyChunkedArray
Sourcepub fn new(array: SuperArray) -> Self
pub fn new(array: SuperArray) -> Self
Creates a new PyChunkedArray from a SuperArray.
Sourcepub fn inner(&self) -> &SuperArray
pub fn inner(&self) -> &SuperArray
Returns a reference to the inner MinArrow SuperArray.
Sourcepub fn into_inner(self) -> SuperArray
pub fn into_inner(self) -> SuperArray
Consumes self and returns the inner SuperArray.
Trait Implementations§
Source§impl AsRef<SuperArray> for PyChunkedArray
impl AsRef<SuperArray> for PyChunkedArray
Source§fn as_ref(&self) -> &SuperArray
fn as_ref(&self) -> &SuperArray
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl Clone for PyChunkedArray
impl Clone for PyChunkedArray
Source§fn clone(&self) -> PyChunkedArray
fn clone(&self) -> PyChunkedArray
Returns a duplicate 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 PyChunkedArray
impl Debug for PyChunkedArray
Source§impl From<PyChunkedArray> for SuperArray
impl From<PyChunkedArray> for SuperArray
Source§fn from(value: PyChunkedArray) -> Self
fn from(value: PyChunkedArray) -> Self
Converts to this type from the input type.
Source§impl From<SuperArray> for PyChunkedArray
impl From<SuperArray> for PyChunkedArray
Source§fn from(array: SuperArray) -> Self
fn from(array: SuperArray) -> Self
Converts to this type from the input type.
Source§impl<'py> FromPyObject<'py> for PyChunkedArray
impl<'py> FromPyObject<'py> for PyChunkedArray
Source§impl<'py> IntoPyObject<'py> for PyChunkedArray
impl<'py> IntoPyObject<'py> for PyChunkedArray
Source§type Output = Bound<'py, <PyChunkedArray as IntoPyObject<'py>>::Target>
type Output = Bound<'py, <PyChunkedArray as IntoPyObject<'py>>::Target>
The smart pointer type to use. Read more
Auto Trait Implementations§
impl Freeze for PyChunkedArray
impl RefUnwindSafe for PyChunkedArray
impl Send for PyChunkedArray
impl Sync for PyChunkedArray
impl Unpin for PyChunkedArray
impl UnsafeUnpin for PyChunkedArray
impl UnwindSafe for PyChunkedArray
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<'py, T> FromPyObjectBound<'_, 'py> for Twhere
T: FromPyObject<'py>,
impl<'py, T> FromPyObjectBound<'_, 'py> for Twhere
T: FromPyObject<'py>,
Source§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>
Converts
self into an owned Python object, dropping type information.