pub struct DataBlockBuilder { /* private fields */ }
Expand description
Builder for data blocks with prefix compression and restart points
Implementations§
Source§impl DataBlockBuilder
impl DataBlockBuilder
Sourcepub fn new(options: DataBlockBuilderOptions) -> Self
pub fn new(options: DataBlockBuilderOptions) -> Self
Create a new DataBlockBuilder with the specified options
pub fn add(&mut self, key: &[u8], value: &[u8])
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 reset(&mut self)
pub fn empty(&self) -> bool
pub fn size_estimate(&self) -> usize
Auto Trait Implementations§
impl Freeze for DataBlockBuilder
impl RefUnwindSafe for DataBlockBuilder
impl Send for DataBlockBuilder
impl Sync for DataBlockBuilder
impl Unpin for DataBlockBuilder
impl UnwindSafe for DataBlockBuilder
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