pub struct ZstdArray { /* private fields */ }
Implementations§
Source§impl ZstdArray
impl ZstdArray
pub fn new( dictionary: Option<ByteBuffer>, frames: Vec<ByteBuffer>, dtype: DType, metadata: ZstdMetadata, n_rows: usize, validity: Validity, ) -> Self
pub fn from_primitive( parray: &PrimitiveArray, level: i32, values_per_frame: usize, ) -> VortexResult<Self>
pub fn from_var_bin_view( vbv: &VarBinViewArray, level: i32, values_per_frame: usize, ) -> VortexResult<Self>
pub fn from_canonical( canonical: &Canonical, level: i32, values_per_frame: usize, ) -> VortexResult<Option<Self>>
pub fn from_array( array: ArrayRef, level: i32, values_per_frame: usize, ) -> VortexResult<Self>
pub fn decompress(&self) -> VortexResult<ArrayRef>
Trait Implementations§
Source§impl ValiditySliceHelper for ZstdArray
impl ValiditySliceHelper for ZstdArray
fn unsliced_validity_and_slice(&self) -> (&Validity, usize, usize)
fn sliced_validity(&self) -> Result<Validity, VortexError>
Auto Trait Implementations§
impl !Freeze for ZstdArray
impl !RefUnwindSafe for ZstdArray
impl Send for ZstdArray
impl Sync for ZstdArray
impl Unpin for ZstdArray
impl !UnwindSafe for ZstdArray
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