pub struct RecordBatchValidator;Expand description
Streaming data validator for Apache Arrow record batches.
Implementations§
Source§impl RecordBatchValidator
impl RecordBatchValidator
Sourcepub fn assert_not_null(batch: &RecordBatch, column: &str) -> Result<()>
pub fn assert_not_null(batch: &RecordBatch, column: &str) -> Result<()>
Validates that a specified column contains no NULL entries in the batch.
Sourcepub fn assert_unique(batch: &RecordBatch, column: &str) -> Result<()>
pub fn assert_unique(batch: &RecordBatch, column: &str) -> Result<()>
Validates that a string/Utf8 column contains strictly unique entries in the batch.
Sourcepub fn assert_unique_key(
batches: &[RecordBatch],
columns: &[String],
) -> Result<()>
pub fn assert_unique_key( batches: &[RecordBatch], columns: &[String], ) -> Result<()>
Global composite uniqueness across all batches (stringified cell values).
Sourcepub fn assert_accepted_values(
batch: &RecordBatch,
column: &str,
accepted_values: &[&str],
) -> Result<()>
pub fn assert_accepted_values( batch: &RecordBatch, column: &str, accepted_values: &[&str], ) -> Result<()>
Validates that all non-null values in a Utf8 column belong to the accepted_values set.
Sourcepub fn validate_batches(
batches: &[RecordBatch],
assertions: &[Assertion],
) -> ValidationResult
pub fn validate_batches( batches: &[RecordBatch], assertions: &[Assertion], ) -> ValidationResult
Runs a suite of assertions over an incoming array of RecordBatches.
Unique / per-batch not_null still walk batches; UniqueKey is global.
Auto Trait Implementations§
impl Freeze for RecordBatchValidator
impl RefUnwindSafe for RecordBatchValidator
impl Send for RecordBatchValidator
impl Sync for RecordBatchValidator
impl Unpin for RecordBatchValidator
impl UnsafeUnpin for RecordBatchValidator
impl UnwindSafe for RecordBatchValidator
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