Skip to main content

InMemoryPageStore

Struct InMemoryPageStore 

Source
pub struct InMemoryPageStore {
    blobs: Vec<Bytes>,
    resident: usize,
}
Expand description

The default PageStore, holding blobs on the heap in a Vec<Bytes>.

Peak memory grows with the row group size; use a spilling backend to bound it.

Fields§

§blobs: Vec<Bytes>§resident: usize

Running total of resident blob bytes, kept in step with put/take.

Trait Implementations§

Source§

impl Debug for InMemoryPageStore

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for InMemoryPageStore

Source§

fn default() -> InMemoryPageStore

Returns the “default value” for a type. Read more
Source§

impl PageStore for InMemoryPageStore

Source§

fn put(&mut self, value: Bytes) -> Result<PageKey>

Store value, returning a handle that can later be passed to take.
Source§

fn take(&mut self, key: PageKey) -> Result<Bytes>

Take back the blob previously stored under key. Read more
Source§

fn memory_size(&self) -> usize

The number of bytes this store currently holds in memory (resident on the heap), used to report the writer’s memory footprint. Read more

Auto Trait Implementations§

Blanket Implementations§

§

impl<T> Allocation for T
where T: RefUnwindSafe + Send + Sync,

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<T> Ungil for T
where T: Send,

§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V