pub struct BufferPool { /* private fields */ }Expand description
SSTable データブロック用の LRU バッファプール。
Implementations§
Source§impl BufferPool
impl BufferPool
Sourcepub fn new(config: BufferPoolConfig) -> Self
pub fn new(config: BufferPoolConfig) -> Self
新しい BufferPool を作成する。
Sourcepub fn current_size_bytes(&self) -> usize
pub fn current_size_bytes(&self) -> usize
現在の使用量(バイト、概算ではなく実測)。
Sourcepub fn capacity_bytes(&self) -> usize
pub fn capacity_bytes(&self) -> usize
容量(バイト)。
Sourcepub fn stats(&self) -> BufferPoolStatsSnapshot
pub fn stats(&self) -> BufferPoolStatsSnapshot
統計を取得する。
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for BufferPool
impl RefUnwindSafe for BufferPool
impl Send for BufferPool
impl Sync for BufferPool
impl Unpin for BufferPool
impl UnsafeUnpin for BufferPool
impl UnwindSafe for BufferPool
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