pub struct BitPackedArray<T: ArrowPrimitiveType>where
T::Native: BitPacking,{ /* private fields */ }Expand description
A bit-packed array.
Implementations§
Source§impl<T: ArrowPrimitiveType> BitPackedArray<T>where
T::Native: BitPacking,
impl<T: ArrowPrimitiveType> BitPackedArray<T>where
T::Native: BitPacking,
Sourcepub fn new_null_array(len: usize) -> Self
pub fn new_null_array(len: usize) -> Self
Creates a new null array with the given length.
Sourcepub fn from_primitive(array: PrimitiveArray<T>, bit_width: NonZero<u8>) -> Self
pub fn from_primitive(array: PrimitiveArray<T>, bit_width: NonZero<u8>) -> Self
Creates a new bit-packed array from a primitive array and a bit width.
Sourcepub fn to_primitive(&self) -> PrimitiveArray<T>
pub fn to_primitive(&self) -> PrimitiveArray<T>
Converts the bit-packed array to a primitive array.
Sourcepub fn get_array_memory_size(&self) -> usize
pub fn get_array_memory_size(&self) -> usize
Returns the memory size of the bit-packed array.
Sourcepub fn from_bytes(bytes: Bytes) -> Selfwhere
T::Native: BitPacking,
pub fn from_bytes(bytes: Bytes) -> Selfwhere
T::Native: BitPacking,
Deserializes a bit-packed array from a byte buffer.
Trait Implementations§
Source§impl<T: ArrowPrimitiveType> Clone for BitPackedArray<T>where
T::Native: BitPacking,
Implement Clone for any T that implements ArrowPrimitiveType and BitPacking
This allows us to clone it without requiring T to implement Clone
impl<T: ArrowPrimitiveType> Clone for BitPackedArray<T>where
T::Native: BitPacking,
Implement Clone for any T that implements ArrowPrimitiveType and BitPacking This allows us to clone it without requiring T to implement Clone
Source§impl<T: Debug + ArrowPrimitiveType> Debug for BitPackedArray<T>
impl<T: Debug + ArrowPrimitiveType> Debug for BitPackedArray<T>
Auto Trait Implementations§
impl<T> Freeze for BitPackedArray<T>
impl<T> RefUnwindSafe for BitPackedArray<T>
impl<T> Send for BitPackedArray<T>
impl<T> Sync for BitPackedArray<T>
impl<T> Unpin for BitPackedArray<T>
impl<T> UnsafeUnpin for BitPackedArray<T>
impl<T> UnwindSafe for BitPackedArray<T>
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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 moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request