#[non_exhaustive]pub struct ExtsortConfig {
pub temp_file_folder: PathBuf,
pub compress_with: CompressionCodec,
/* private fields */
}
Expand description
The configuration for the external sorting.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.temp_file_folder: PathBuf
§compress_with: CompressionCodec
Implementations§
Source§impl ExtsortConfig
impl ExtsortConfig
Sourcepub fn new() -> Self
pub fn new() -> Self
Creates a configuration with a sort buffer size of 10M and a sort directory of /tmp
It is recommended to increase the sort buffer size for improved performance.
Sourcepub fn with_buffer_size(sort_buf_bytes: usize) -> Self
pub fn with_buffer_size(sort_buf_bytes: usize) -> Self
Creates a configuration with a specified sort buffer size in bytes and a sort directory of /tmp
Sourcepub fn create_with_buffer_size_for<T>(sort_buf_bytes: usize) -> Self
👎Deprecated: Use new() or the Default impl instead. These do not require a type annotation
pub fn create_with_buffer_size_for<T>(sort_buf_bytes: usize) -> Self
Creates a configuration with a specified sort buffer size in bytes and a sort directory of /tmp
Sourcepub fn default_for<T>() -> Self
👎Deprecated: Use new() or the Default impl instead. These do not require a type annotation
pub fn default_for<T>() -> Self
Creates a configuration with a sort buffer size of 10M and a sort directory of /tmp
Sourcepub fn temp_file_folder(self, folder: impl Into<PathBuf>) -> Self
pub fn temp_file_folder(self, folder: impl Into<PathBuf>) -> Self
Updates the temp_file_folder attribute. Useful for fluent-style api usage.
pub fn compress_lz4_flex(self) -> Self
Sourcepub fn sort_buffer_size(self, new_size: usize) -> Self
pub fn sort_buffer_size(self, new_size: usize) -> Self
sets the sort buffer size in bytes
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ExtsortConfig
impl RefUnwindSafe for ExtsortConfig
impl Send for ExtsortConfig
impl Sync for ExtsortConfig
impl Unpin for ExtsortConfig
impl UnwindSafe for ExtsortConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more