pub struct ObjectIdArray { /* private fields */ }
Expand description
Represents an Arrow array with an ObjectIdEncoding.
Implementations§
Source§impl ObjectIdArray
impl ObjectIdArray
Sourcepub fn try_new(
encoding: ObjectIdEncoding,
array: Arc<dyn Array>,
) -> Result<ObjectIdArray, DataFusionError>
pub fn try_new( encoding: ObjectIdEncoding, array: Arc<dyn Array>, ) -> Result<ObjectIdArray, DataFusionError>
Tries to create a new ObjectIdArray from a regular ArrayRef.
§Errors
Returns an error if the data type of value
is unexpected.
Sourcepub fn new_unchecked(
encoding: ObjectIdEncoding,
inner: Arc<dyn Array>,
) -> ObjectIdArray
pub fn new_unchecked( encoding: ObjectIdEncoding, inner: Arc<dyn Array>, ) -> ObjectIdArray
Creates a new ObjectIdArray without checking invariants.
Sourcepub fn object_ids(&self) -> &PrimitiveArray<UInt32Type>
pub fn object_ids(&self) -> &PrimitiveArray<UInt32Type>
Returns a reference to the inner UInt32Array.
Trait Implementations§
Source§impl Clone for ObjectIdArray
impl Clone for ObjectIdArray
Source§fn clone(&self) -> ObjectIdArray
fn clone(&self) -> ObjectIdArray
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 ObjectIdArray
impl Debug for ObjectIdArray
Source§impl EncodingArray for ObjectIdArray
impl EncodingArray for ObjectIdArray
Source§type Encoding = ObjectIdEncoding
type Encoding = ObjectIdEncoding
The encoding used by this array.
Source§fn encoding(&self) -> &<ObjectIdArray as EncodingArray>::Encoding
fn encoding(&self) -> &<ObjectIdArray as EncodingArray>::Encoding
Obtains the encoding instance for this array.
Source§fn into_array(self) -> Arc<dyn Array>
fn into_array(self) -> Arc<dyn Array>
Consumes
self
and returns the inner array.Source§fn try_as_scalar(
&self,
index: usize,
) -> Result<<Self::Encoding as TermEncoding>::Scalar, DataFusionError>
fn try_as_scalar( &self, index: usize, ) -> Result<<Self::Encoding as TermEncoding>::Scalar, DataFusionError>
Extracts a scalar from this array at
index
. Read moreAuto Trait Implementations§
impl Freeze for ObjectIdArray
impl !RefUnwindSafe for ObjectIdArray
impl Send for ObjectIdArray
impl Sync for ObjectIdArray
impl Unpin for ObjectIdArray
impl !UnwindSafe for ObjectIdArray
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<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>
Converts
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>
Converts
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 more