pub struct StreamingAssertionRunner { /* private fields */ }Expand description
Streaming frontmatter assertion runner (per-batch + global unique state).
Drop each batch after observe_batch so peak RAM stays O(unique cardinality)
rather than O(full result).
Implementations§
Source§impl StreamingAssertionRunner
impl StreamingAssertionRunner
pub fn new(assertions: &[Assertion], fail_fast: bool) -> Self
pub fn is_empty(&self) -> bool
Sourcepub fn observe_batch(&mut self, batch: &RecordBatch) -> Result<()>
pub fn observe_batch(&mut self, batch: &RecordBatch) -> Result<()>
Observe one batch. On fail-fast, returns Err on first violation.
pub fn finish(self) -> ValidationResult
Trait Implementations§
Source§impl Debug for StreamingAssertionRunner
impl Debug for StreamingAssertionRunner
Source§impl Default for StreamingAssertionRunner
impl Default for StreamingAssertionRunner
Source§fn default() -> StreamingAssertionRunner
fn default() -> StreamingAssertionRunner
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for StreamingAssertionRunner
impl RefUnwindSafe for StreamingAssertionRunner
impl Send for StreamingAssertionRunner
impl Sync for StreamingAssertionRunner
impl Unpin for StreamingAssertionRunner
impl UnsafeUnpin for StreamingAssertionRunner
impl UnwindSafe for StreamingAssertionRunner
Blanket Implementations§
impl<T> Allocation for T
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> Downcast for T
impl<T> Downcast for T
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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