Struct ext_sort::sort::ExternalSorterBuilder [−][src]
pub struct ExternalSorterBuilder<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 builder. Provides methods for ExternalSorter initialization.
Implementations
impl<T, E, B, C> ExternalSorterBuilder<T, E, B, C> where
T: Ord + Send,
E: Error,
B: ChunkBufferBuilder<T>,
C: ExternalChunk<T>,
impl<T, E, B, C> ExternalSorterBuilder<T, E, B, C> where
T: Ord + Send,
E: Error,
B: ChunkBufferBuilder<T>,
C: ExternalChunk<T>,
pub fn build(
self
) -> Result<ExternalSorter<T, E, B, C>, SortError<C::SerializationError, C::DeserializationError, E>>
pub fn build(
self
) -> Result<ExternalSorter<T, E, B, C>, SortError<C::SerializationError, C::DeserializationError, E>>
Builds an ExternalSorter instance using provided configuration.
Sets number of threads to be used to sort data in parallel.
Sets directory to be used to store temporary data.
Sets buffer builder.
Sets chunk read/write buffer size.
Trait Implementations
impl<T: Clone, E: Clone, B: Clone, C: Clone> Clone for ExternalSorterBuilder<T, E, B, C> where
T: Ord + Send,
E: Error,
B: ChunkBufferBuilder<T>,
C: ExternalChunk<T>,
impl<T: Clone, E: Clone, B: Clone, C: Clone> Clone for ExternalSorterBuilder<T, E, B, C> where
T: Ord + Send,
E: Error,
B: ChunkBufferBuilder<T>,
C: ExternalChunk<T>,
impl<T, E, B, C> Default for ExternalSorterBuilder<T, E, B, C> where
T: Ord + Send,
E: Error,
B: ChunkBufferBuilder<T>,
C: ExternalChunk<T>,
impl<T, E, B, C> Default for ExternalSorterBuilder<T, E, B, C> where
T: Ord + Send,
E: Error,
B: ChunkBufferBuilder<T>,
C: ExternalChunk<T>,
Auto Trait Implementations
impl<T, E, B, C> RefUnwindSafe for ExternalSorterBuilder<T, E, B, C> where
B: RefUnwindSafe,
C: RefUnwindSafe,
E: RefUnwindSafe,
T: RefUnwindSafe,
impl<T, E, B, C> Send for ExternalSorterBuilder<T, E, B, C> where
B: Send,
C: Send,
E: Send,
impl<T, E, B, C> Sync for ExternalSorterBuilder<T, E, B, C> where
B: Sync,
C: Sync,
E: Sync,
T: Sync,
impl<T, E, B, C> Unpin for ExternalSorterBuilder<T, E, B, C> where
B: Unpin,
C: Unpin,
E: Unpin,
T: Unpin,
impl<T, E, B, C> UnwindSafe for ExternalSorterBuilder<T, E, B, C> where
B: UnwindSafe,
C: UnwindSafe,
E: UnwindSafe,
T: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
