Struct mtbl::SorterOptions [] [src]

pub struct SorterOptions {
    pub temp_dir: Option<PathBuf>,
    pub max_memory: Option<usize>,
}

Options used to create a Sorter.

Fields

The temporary directory to be used for intermediate files. Default is "/var/tmp".

The amount of RAM to use for storing intermediate files, in bytes. Default is 1 GiB.

Methods

impl SorterOptions
[src]

Create a new SorterOptions with defaults.

Create a new SorterOptions with temp_dir set.

Create a new SorterOptions with max_memory set.

Create a new Sorter with these options.

Once sorting is done, the resulting sequence will be written to the supplied Writer. Note that a MergeFn must be supplied to combine values for entries with colliding keys.

Create a new Sorter with these options.

Once sorting is done, the resulting sequence will be written to the supplied path. Note that a MergeFn must be supplied to combine values for entries with colliding keys.

Create a new Sorter with these options.

Once sorting is done, the resulting sequence will be written to the supplied path. Note that a MergeFn must be supplied to combine values for entries with colliding keys.

Trait Implementations

impl Clone for SorterOptions
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more