/// Database-wide options around performance and behavior.
///
/// Please read [the official tuning guide](https://github.com/facebook/rocksdb/wiki/RocksDB-Tuning-Guide), and most importantly, measure performance under realistic workloads with realistic hardware.
/// Please read the official tuning [guide](https://github.com/facebook/rocksdb/wiki/RocksDB-Tuning-Guide)
/// and most importantly, measure performance under realistic workloads with realistic hardware.
///
/// # Examples
///
@ -273,7 +274,7 @@ impl BlockBasedOptions {
/// Defines the index type to be used for SS-table lookups.
///
/// # Example
/// # Examples
///
/// ```
/// use rocksdb::{BlockBasedOptions, BlockBasedIndexType, Options};
@ -321,7 +322,9 @@ impl BlockBasedOptions {
}
/// Format version, reserved for backward compatibility.
/// See https://github.com/facebook/rocksdb/blob/f059c7d9b96300091e07429a60f4ad55dac84859/include/rocksdb/table.h#L249-L274.
///
/// See full [list](https://github.com/facebook/rocksdb/blob/f059c7d9b96300091e07429a60f4ad55dac84859/include/rocksdb/table.h#L249-L274)
/// of the supported versions.
///
/// Default: 2.
pubfnset_format_version(&mutself,version: i32){
@ -363,7 +366,7 @@ impl BlockBasedOptions {
/// valid only when using `DataBlockIndexType::BinaryAndHash`.
///
/// Default: `BinarySearch`
/// # Example
/// # Examples
///
/// ```
/// use rocksdb::{BlockBasedOptions, DataBlockIndexType, Options};
@ -407,7 +410,7 @@ impl Options {
/// cores. You almost definitely want to call this function if your system is
/// bottlenecked by RocksDB.
///
/// # Example
/// # Examples
///
/// ```
/// use rocksdb::Options;
@ -475,7 +478,7 @@ impl Options {
///
/// Default: `false`
///
/// # Example
/// # Examples
///
/// ```
/// use rocksdb::Options;
@ -494,7 +497,7 @@ impl Options {
///
/// Default: `false`
///
/// # Example
/// # Examples
///
/// ```
/// use rocksdb::Options;
@ -516,7 +519,7 @@ impl Options {
/// Default: `DBCompressionType::Snappy` (`DBCompressionType::None` if
/// snappy feature is not enabled).
///
/// # Example
/// # Examples
///
/// ```
/// use rocksdb::{Options, DBCompressionType};
@ -538,7 +541,7 @@ impl Options {
/// each level of the database; these override the value specified in
/// the previous field 'compression'.
///
/// # Example
/// # Examples
///
/// ```
/// use rocksdb::{Options, DBCompressionType};
@ -580,7 +583,7 @@ impl Options {
///
/// Default: `0`
///
/// # Example
/// # Examples
///
/// ```
/// use rocksdb::Options;
@ -742,7 +745,7 @@ impl Options {
///
/// Default: `false`
///
/// # Example
/// # Examples
///
/// ```
/// use rocksdb::Options;
@ -767,7 +770,7 @@ impl Options {
///
/// Default: `-1`
///
/// # Example
/// # Examples
///
/// ```
/// use rocksdb::Options;
@ -788,7 +791,7 @@ impl Options {
///
/// Default: `false`
///
/// # Example
/// # Examples
///
/// ```
/// use rocksdb::Options;
@ -814,7 +817,7 @@ impl Options {
///
/// This option applies to table files
///
/// # Example
/// # Examples
///
/// ```
/// use rocksdb::Options;
@ -837,7 +840,7 @@ impl Options {
///
/// Default: true
///
/// # Example
/// # Examples
///
/// ```
/// use rocksdb::Options;
@ -861,7 +864,7 @@ impl Options {
///
/// Default: false
///
/// # Example
/// # Examples
///
/// ```
/// use rocksdb::Options;
@ -885,7 +888,7 @@ impl Options {
///
/// Default: false
///
/// # Example
/// # Examples
///
/// ```
/// use rocksdb::Options;
@ -921,7 +924,7 @@ impl Options {
///
/// Default: true
///
/// # Example
/// # Examples
///
/// ```
/// #[allow(deprecated)]
@ -943,7 +946,7 @@ impl Options {
///
/// Default: `6`
///
/// # Example
/// # Examples
///
/// ```
/// use rocksdb::Options;
@ -967,7 +970,7 @@ impl Options {
///
/// Default: `1`
///
/// # Example
/// # Examples
///
/// ```
/// use rocksdb::Options;
@ -991,7 +994,7 @@ impl Options {
///
/// Default: `2`
///
/// # Example
/// # Examples
///
/// ```
/// use rocksdb::Options;
@ -1022,7 +1025,7 @@ impl Options {
///
/// Dynamically changeable through SetOptions() API
///
/// # Example
/// # Examples
///
/// ```
/// use rocksdb::Options;
@ -1047,7 +1050,7 @@ impl Options {
///
/// Default: 0 (disabled)
///
/// # Example
/// # Examples
///
/// ```
/// use rocksdb::Options;
@ -1074,7 +1077,7 @@ impl Options {
///
/// Dynamically changeable through SetOptions() API
///
/// # Example
/// # Examples
///
/// ```
/// use rocksdb::Options;
@ -1090,7 +1093,7 @@ impl Options {
/// Default: `10`
///
/// # Example
/// # Examples
///
/// ```
/// use rocksdb::Options;
@ -1108,7 +1111,7 @@ impl Options {
/// The older manifest file be deleted.
/// The default value is MAX_INT so that roll-over does not take place.
///
/// # Example
/// # Examples
///
/// ```
/// use rocksdb::Options;
@ -1135,7 +1138,7 @@ impl Options {
///
/// Dynamically changeable through SetOptions() API
///
/// # Example
/// # Examples
///
/// ```
/// use rocksdb::Options;
@ -1159,7 +1162,7 @@ impl Options {
///
/// Default: `1`
///
/// # Example
/// # Examples
///
/// ```
/// use rocksdb::Options;
@ -1180,7 +1183,7 @@ impl Options {
///
/// Dynamically changeable through SetOptions() API
///
/// # Example
/// # Examples
///
/// ```
/// use rocksdb::Options;
@ -1202,7 +1205,7 @@ impl Options {
///
/// Dynamically changeable through SetOptions() API
///
/// # Example
/// # Examples
///
/// ```
/// use rocksdb::Options;
@ -1222,7 +1225,7 @@ impl Options {
///
/// Dynamically changeable through SetOptions() API
///
/// # Example
/// # Examples
///
/// ```
/// use rocksdb::Options;
@ -1240,7 +1243,7 @@ impl Options {
///
/// Default: DBCompactionStyle::Level
///
/// # Example
/// # Examples
///
/// ```
/// use rocksdb::{Options, DBCompactionStyle};
@ -1267,7 +1270,7 @@ impl Options {
///
/// Default: `1`
///
/// # Example
/// # Examples
///
/// ```
/// use rocksdb::Options;
@ -1298,7 +1301,7 @@ impl Options {
///
/// Default: `1`
///
/// # Example
/// # Examples
///
/// ```
/// use rocksdb::Options;
@ -1319,7 +1322,7 @@ impl Options {
///
/// Dynamically changeable through SetOptions() API
///
/// # Example
/// # Examples
///
/// ```
/// use rocksdb::Options;
@ -1364,10 +1367,10 @@ impl Options {
}
/// Defines the underlying memtable implementation.
/// See https://github.com/facebook/rocksdb/wiki/MemTable for more information.
/// See official [wiki](https://github.com/facebook/rocksdb/wiki/MemTable) for more information.
/// Defaults to using a skiplist.
///
/// # Example
/// # Examples
///
/// ```
/// use rocksdb::{Options, MemtableFactory};
@ -1410,7 +1413,15 @@ impl Options {
}
}
/// See https://github.com/facebook/rocksdb/wiki/PlainTable-Format.
// This is a factory that provides TableFactory objects.
// Default: a block-based table factory that provides a default
// implementation of TableBuilder and TableReader with default
// BlockBasedTableOptions.
/// Sets the factory as plain table.
/// See official [wiki](https://github.com/facebook/rocksdb/wiki/PlainTable-Format) for more
/// information.
///
/// # Examples
///
/// ```
/// use rocksdb::{Options, PlainTableFactoryOptions};