|
|
@ -414,9 +414,21 @@ impl Options { |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// Sets the optimize_filters_for_hits flag
|
|
|
|
|
|
|
|
///
|
|
|
|
|
|
|
|
/// Default: `false`
|
|
|
|
|
|
|
|
///
|
|
|
|
|
|
|
|
/// # Example
|
|
|
|
|
|
|
|
///
|
|
|
|
|
|
|
|
/// ```
|
|
|
|
|
|
|
|
/// use rocksdb::Options;
|
|
|
|
|
|
|
|
///
|
|
|
|
|
|
|
|
/// let mut opts = Options::default();
|
|
|
|
|
|
|
|
/// opts.set_optimize_filters_for_hits(true);
|
|
|
|
|
|
|
|
/// ```
|
|
|
|
pub fn set_optimize_filters_for_hits(&mut self, optimize_for_hits: bool) { |
|
|
|
pub fn set_optimize_filters_for_hits(&mut self, optimize_for_hits: bool) { |
|
|
|
unsafe { |
|
|
|
unsafe { |
|
|
|
ffi::rocksdb_options_set_optimize_filters_for_hits(self.inner, optimize_for_hits as c_uchar); |
|
|
|
ffi::rocksdb_options_set_optimize_filters_for_hits(self.inner, optimize_for_hits as c_int); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|