Trait Resize

Source
pub trait Resize {
    // Required method
    fn resize(&mut self, new_capacity: usize);
}
Expand description

A column buffer which can be resized.

Resizing is useful if a column buffer is used for inserting parameters, rather than fetching. Imagine an application which inserts data from a stream with row groups of varying size. If it encounters a row group with a new maximum size, it may want to resize the parameter buffers to send the entire row group in one go.

Required Methods§

Source

fn resize(&mut self, new_capacity: usize)

Resize the buffer to the given capacity.

§Parameters
  • new_capacity: The new capacity of the buffer.

Implementations on Foreign Types§

Source§

impl<T> Resize for Vec<T>
where T: Default + Clone,

Source§

fn resize(&mut self, new_capacity: usize)

Implementors§