pub struct Preparer { /* private fields */ }Expand description
Encodes stripes for one Writer without the writer.
Handed out by Writer::preparer and cheap to hold. It shares with its writer which varchar
columns still have a global dictionary, so a stripe prepared after the first one decided a
column should not have one is encoded plainly from the start.
Implementations§
Source§impl Preparer
impl Preparer
Sourcepub fn prepare(&self, parts: Vec<((u64, u64), Chunk)>) -> Result<Prepared>
pub fn prepare(&self, parts: Vec<((u64, u64), Chunk)>) -> Result<Prepared>
Encodes a run of chunks as one stripe, as far as it can be without the writer.
The run is what Writer::append_stripe takes, and the rules are the same: it is a stripe
of its own, and the orders have to come out in source order once the stripes are sorted. An
empty chunk is dropped.
§Errors
If the run is longer than STRIPE_PARTS, a chunk’s columns are not the table’s, or one
cannot be encoded.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Preparer
impl RefUnwindSafe for Preparer
impl Send for Preparer
impl Sync for Preparer
impl Unpin for Preparer
impl UnsafeUnpin for Preparer
impl UnwindSafe for Preparer
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