pub struct Options {
pub cmp: Arc<Box<dyn Cmp>>,
pub write_buffer_size: usize,
pub block_cache: Arc<RwLock<Cache<Block>>>,
pub block_size: usize,
pub block_restart_interval: usize,
pub compression_type: CompressionType,
pub filter_policy: BoxedFilterPolicy,
}
Expand description
Options contains general parameters for reading and writing SSTables. Most of the names are
self-explanatory; the defaults are defined in the Default
implementation.
Fields§
§cmp: Arc<Box<dyn Cmp>>
§write_buffer_size: usize
§block_cache: Arc<RwLock<Cache<Block>>>
§block_size: usize
§block_restart_interval: usize
§compression_type: CompressionType
§filter_policy: BoxedFilterPolicy
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Options
impl Send for Options
impl Sync for Options
impl Unpin for Options
impl !UnwindSafe for Options
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