pub struct FSSTArray { /* private fields */ }Implementations§
Source§impl FSSTArray
impl FSSTArray
Sourcepub fn try_new(
dtype: DType,
symbols: Buffer<Symbol>,
symbol_lengths: Buffer<u8>,
codes: VarBinArray,
uncompressed_lengths: ArrayRef,
) -> VortexResult<Self>
pub fn try_new( dtype: DType, symbols: Buffer<Symbol>, symbol_lengths: Buffer<u8>, codes: VarBinArray, uncompressed_lengths: ArrayRef, ) -> VortexResult<Self>
Build an FSST array from a set of symbols and codes.
Symbols are 8-bytes and can represent short strings, each of which is assigned a code.
The codes array is a Binary array where each binary datum is a sequence of 8-bit codes.
Each code corresponds either to a symbol, or to the “escape code”,
which tells the decoder to emit the following byte without doing a table lookup.
Sourcepub fn symbol_lengths(&self) -> &Buffer<u8>
pub fn symbol_lengths(&self) -> &Buffer<u8>
Access the symbol table array
Sourcepub fn codes(&self) -> &VarBinArray
pub fn codes(&self) -> &VarBinArray
Access the codes array
Sourcepub fn codes_dtype(&self) -> &DType
pub fn codes_dtype(&self) -> &DType
Get the DType of the codes array
Sourcepub fn uncompressed_lengths(&self) -> &ArrayRef
pub fn uncompressed_lengths(&self) -> &ArrayRef
Get the uncompressed length for each element in the array.
Sourcepub fn uncompressed_lengths_dtype(&self) -> &DType
pub fn uncompressed_lengths_dtype(&self) -> &DType
Get the DType of the uncompressed lengths array
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for FSSTArray
impl !RefUnwindSafe for FSSTArray
impl Send for FSSTArray
impl Sync for FSSTArray
impl Unpin for FSSTArray
impl !UnwindSafe for FSSTArray
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