pub enum RawSharedDictEncoding<'a> {
Plain(RawPlainData<'a>),
FsstPlain(RawFsstData<'a>),
}Expand description
Raw encoding payload for a SharedDict column.
Unlike RawStringsEncoding, shared dictionaries do NOT have their own offset stream.
Instead, each child column has its own offset stream that references the shared dictionary.
This is why only Plain and FsstPlain variants exist here.
Variants§
Plain(RawPlainData<'a>)
Plain shared dict (2 streams): lengths + data.
FsstPlain(RawFsstData<'a>)
FSST plain shared dict (4 streams): symbol lengths, symbol table, lengths, corpus.
Implementations§
Sourcepub fn plain(plain_data: RawPlainData<'a>) -> Self
pub fn plain(plain_data: RawPlainData<'a>) -> Self
Plain shared dict (2 streams): lengths + data.
Sourcepub fn fsst_plain(fsst_data: RawFsstData<'a>) -> Self
pub fn fsst_plain(fsst_data: RawFsstData<'a>) -> Self
FSST plain shared dict (4 streams): symbol lengths, symbol table, lengths, corpus.
Sourcepub fn dict_streams(&self) -> Vec<&RawStream<'_>>
pub fn dict_streams(&self) -> Vec<&RawStream<'_>>
Dict streams in wire order (for serialization).
Trait Implementations§
Source§fn clone(&self) -> RawSharedDictEncoding<'a>
fn clone(&self) -> RawSharedDictEncoding<'a>
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 moreAuto Trait Implementations§
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