Struct ext_sort::sort::ExternalSorterBuilder
source · pub struct ExternalSorterBuilder<T, E, B = LimitedBufferBuilder, C = RmpExternalChunk<T>>where
T: Send,
E: Error,
B: ChunkBufferBuilder<T>,
C: ExternalChunk<T>,{ /* private fields */ }
Expand description
External sorter builder. Provides methods for ExternalSorter
initialization.
Implementations§
source§impl<T, E, B, C> ExternalSorterBuilder<T, E, B, C>where
T: Send,
E: Error,
B: ChunkBufferBuilder<T>,
C: ExternalChunk<T>,
impl<T, E, B, C> ExternalSorterBuilder<T, E, B, C>where T: Send, E: Error, B: ChunkBufferBuilder<T>, C: ExternalChunk<T>,
sourcepub 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.
sourcepub fn with_threads_number(
self,
threads_number: usize
) -> ExternalSorterBuilder<T, E, B, C>
pub fn with_threads_number( self, threads_number: usize ) -> ExternalSorterBuilder<T, E, B, C>
Sets number of threads to be used to sort data in parallel.
sourcepub fn with_tmp_dir(self, path: &Path) -> ExternalSorterBuilder<T, E, B, C>
pub fn with_tmp_dir(self, path: &Path) -> ExternalSorterBuilder<T, E, B, C>
Sets directory to be used to store temporary data.
sourcepub fn with_buffer(self, buffer_builder: B) -> ExternalSorterBuilder<T, E, B, C>
pub fn with_buffer(self, buffer_builder: B) -> ExternalSorterBuilder<T, E, B, C>
Sets buffer builder.
sourcepub fn with_rw_buf_size(
self,
buf_size: usize
) -> ExternalSorterBuilder<T, E, B, C>
pub fn with_rw_buf_size( self, buf_size: usize ) -> ExternalSorterBuilder<T, E, B, C>
Sets chunk read/write buffer size.
Trait Implementations§
source§impl<T, E, B, C> Clone for ExternalSorterBuilder<T, E, B, C>where
T: Send + Clone,
E: Error + Clone,
B: ChunkBufferBuilder<T> + Clone,
C: ExternalChunk<T> + Clone,
impl<T, E, B, C> Clone for ExternalSorterBuilder<T, E, B, C>where T: Send + Clone, E: Error + Clone, B: ChunkBufferBuilder<T> + Clone, C: ExternalChunk<T> + Clone,
source§fn clone(&self) -> ExternalSorterBuilder<T, E, B, C>
fn clone(&self) -> ExternalSorterBuilder<T, E, B, C>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more