Struct mtbl::WriterOptions [] [src]

pub struct WriterOptions {
    pub compression: Option<CompressionType>,
    pub block_size: Option<usize>,
    pub block_restart_interval: Option<usize>,
}
[]

Options for writing an MTBL file.

Examples

let writer = WriterOptions::new()
                 .compression(CompressionType::MTBL_COMPRESSION_SNAPPY)
                 .create_from_path("/tmp/f.mtbl");Run

Fields

[]

What compression type to use. Default is to use zlib.

[]

What block size to use, in bytes. Default is 8 KiB.

[]

How often, in keys, to restart intra-block key prefix compression. Default is every 16 keys.

Methods

impl WriterOptions
[src]

[]

Create new options with only defaults.

[]

Create a new options with compression type set.

[]

Create a new options with block size set.

[]

Create a new options with block restart interval set.

[]

Create a new Writer using these options, at a given path.

[]

Create a new Writer using these options, with a given File.

Trait Implementations

impl Clone for WriterOptions
[src]

[]

Returns a copy of the value. Read more

[]

Performs copy-assignment from source. Read more

impl Copy for WriterOptions
[src]