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
impl<T, E, B, C> ExternalSorter<T, E, B, C> where
T: Ord + Send,
E: Error,
B: ChunkBufferBuilder<T>,
C: ExternalChunk<T>,
impl<T, E, B, C> ExternalSorter<T, E, B, C> where
T: Ord + Send,
E: Error,
B: ChunkBufferBuilder<T>,
C: ExternalChunk<T>,
Creates a new external sorter instance.
pub fn sort<I>(
&self,
input: I
) -> Result<BinaryHeapMerger<T, C::DeserializationError, C>, SortError<C::SerializationError, C::DeserializationError, E>> where
I: IntoIterator<Item = Result<T, E>>,
pub fn sort<I>(
&self,
input: I
) -> Result<BinaryHeapMerger<T, C::DeserializationError, C>, SortError<C::SerializationError, C::DeserializationError, E>> where
I: IntoIterator<Item = Result<T, E>>,
Sorts data from input using external sort algorithm.
