pub struct ParallelSkipper { /* private fields */ }Expand description
Parallel batch skipper with configurable strategy
Use this when you need more control over the skip strategy or want to reuse the same skipper across multiple batches.
Implementations§
Source§impl ParallelSkipper
impl ParallelSkipper
Sourcepub const fn new(strategy: SkipStrategy) -> Self
pub const fn new(strategy: SkipStrategy) -> Self
Create a new parallel skipper with the given strategy
Sourcepub fn skip_objects(&self, documents: &[&[u8]]) -> Vec<Option<SkipResult>>
pub fn skip_objects(&self, documents: &[&[u8]]) -> Vec<Option<SkipResult>>
Skip objects in parallel
Sourcepub fn skip_arrays(&self, documents: &[&[u8]]) -> Vec<Option<SkipResult>>
pub fn skip_arrays(&self, documents: &[&[u8]]) -> Vec<Option<SkipResult>>
Skip arrays in parallel
Sourcepub fn skip_values(&self, documents: &[&[u8]]) -> Vec<Option<SkipResult>>
pub fn skip_values(&self, documents: &[&[u8]]) -> Vec<Option<SkipResult>>
Skip values in parallel (auto-detects type)
Trait Implementations§
Source§impl Clone for ParallelSkipper
impl Clone for ParallelSkipper
Source§fn clone(&self) -> ParallelSkipper
fn clone(&self) -> ParallelSkipper
Returns a duplicate 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 moreSource§impl Debug for ParallelSkipper
impl Debug for ParallelSkipper
Source§impl Display for ParallelSkipper
impl Display for ParallelSkipper
impl Copy for ParallelSkipper
Auto Trait Implementations§
impl Freeze for ParallelSkipper
impl RefUnwindSafe for ParallelSkipper
impl Send for ParallelSkipper
impl Sync for ParallelSkipper
impl Unpin for ParallelSkipper
impl UnwindSafe for ParallelSkipper
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<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