create_sorter

Function create_sorter 

Source
pub fn create_sorter<MF: MergeFunction>(
    sort_algorithm: SortAlgorithm,
    merge: MF,
    chunk_compression_type: CompressionType,
    chunk_compression_level: Option<u32>,
    max_nb_chunks: Option<usize>,
    max_memory: Option<usize>,
    sort_in_parallel: bool,
) -> Sorter<MF>
Expand description

A helper function that creates a grenad sorter with the given parameters. The max memory is clamped to something reasonable.