pub struct NdjsonOptions {
pub max_line_len: usize,
pub initial_buffer_capacity: usize,
pub reader_buffer_capacity: usize,
pub reverse_chunk_size: usize,
pub parallel_min_bytes: u64,
pub parallelism: NdjsonParallelism,
pub row_frame: NdjsonRowFrame,
pub null_output: NdjsonNullOutput,
}Expand description
Configuration for per-row NDJSON execution.
Fields§
§max_line_len: usize§initial_buffer_capacity: usize§reader_buffer_capacity: usize§reverse_chunk_size: usize§parallel_min_bytes: u64§parallelism: NdjsonParallelism§row_frame: NdjsonRowFrame§null_output: NdjsonNullOutputImplementations§
Source§impl NdjsonOptions
impl NdjsonOptions
pub fn with_max_line_len(self, max_line_len: usize) -> Self
pub fn with_initial_buffer_capacity(self, capacity: usize) -> Self
pub fn with_reader_buffer_capacity(self, capacity: usize) -> Self
pub fn with_reverse_chunk_size(self, capacity: usize) -> Self
pub fn with_parallel_min_bytes(self, bytes: u64) -> Self
pub fn with_parallelism(self, parallelism: NdjsonParallelism) -> Self
pub fn with_row_frame(self, row_frame: NdjsonRowFrame) -> Self
pub fn with_null_output(self, null_output: NdjsonNullOutput) -> Self
Trait Implementations§
Source§impl Clone for NdjsonOptions
impl Clone for NdjsonOptions
Source§fn clone(&self) -> NdjsonOptions
fn clone(&self) -> NdjsonOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for NdjsonOptions
impl Debug for NdjsonOptions
Source§impl Default for NdjsonOptions
impl Default for NdjsonOptions
Source§impl PartialEq for NdjsonOptions
impl PartialEq for NdjsonOptions
Source§fn eq(&self, other: &NdjsonOptions) -> bool
fn eq(&self, other: &NdjsonOptions) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for NdjsonOptions
impl Eq for NdjsonOptions
impl StructuralPartialEq for NdjsonOptions
Auto Trait Implementations§
impl Freeze for NdjsonOptions
impl RefUnwindSafe for NdjsonOptions
impl Send for NdjsonOptions
impl Sync for NdjsonOptions
impl Unpin for NdjsonOptions
impl UnsafeUnpin for NdjsonOptions
impl UnwindSafe for NdjsonOptions
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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