Struct ext_sort::sort::ExternalSorter[][src]

pub struct ExternalSorter<T, E, B = LimitedBufferBuilder, C = RmpExternalChunk<T>> where
    T: Ord + Send,
    E: Error,
    B: ChunkBufferBuilder<T>,
    C: ExternalChunk<T>, 
{ /* fields omitted */ }
Expand description

External sorter.

Implementations

Creates a new external sorter instance.

Arguments
  • threads_number - Number of threads to be used to sort data in parallel. If the parameter is None threads number will be selected based on available CPU core number.
  • tmp_path - Directory to be used to store temporary data. If paramater is None default OS temporary directory will be used.
  • buffer_builder - An instance of a buffer builder that will be used for chunk buffer creation.
  • rw_buf_size - Chunks file read/write buffer size.

Sorts data from input using external sort algorithm. Returns an iterator that can be used to get sorted data stream.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.