pub struct IndexBlockBuilder { /* private fields */ }
Expand description
Builder for index blocks that track data block locations
Implementations§
Source§impl IndexBlockBuilder
impl IndexBlockBuilder
pub fn new(restart_interval: usize) -> Self
pub fn add_index_entry(&mut self, key: &[u8], block_handle: &BlockHandle)
pub fn finish( &mut self, compression_type: CompressionType, checksum_type: ChecksumType, file_offset: Option<u64>, base_context_checksum: Option<u32>, ) -> Result<Vec<u8>>
pub fn empty(&self) -> bool
Auto Trait Implementations§
impl Freeze for IndexBlockBuilder
impl RefUnwindSafe for IndexBlockBuilder
impl Send for IndexBlockBuilder
impl Sync for IndexBlockBuilder
impl Unpin for IndexBlockBuilder
impl UnwindSafe for IndexBlockBuilder
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