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: usizeRunning total of resident blob bytes, kept in step with put/take.
Trait Implementations§
Source§impl Debug for InMemoryPageStore
impl Debug for InMemoryPageStore
Source§impl Default for InMemoryPageStore
impl Default for InMemoryPageStore
Source§fn default() -> InMemoryPageStore
fn default() -> InMemoryPageStore
Returns the “default value” for a type. Read more
Source§impl PageStore for InMemoryPageStore
impl PageStore for InMemoryPageStore
Source§fn put(&mut self, value: Bytes) -> Result<PageKey>
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>
fn take(&mut self, key: PageKey) -> Result<Bytes>
Take back the blob previously stored under
key. Read moreSource§fn memory_size(&self) -> usize
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§
impl Freeze for InMemoryPageStore
impl RefUnwindSafe for InMemoryPageStore
impl Send for InMemoryPageStore
impl Sync for InMemoryPageStore
impl Unpin for InMemoryPageStore
impl UnsafeUnpin for InMemoryPageStore
impl UnwindSafe for InMemoryPageStore
Blanket Implementations§
impl<T> Allocation for T
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