pub struct QualityValidator { /* private fields */ }
Expand description
Data quality validator
Implementations§
Source§impl QualityValidator
impl QualityValidator
Sourcepub fn new(config: ValidationConfig) -> Self
pub fn new(config: ValidationConfig) -> Self
Create new quality validator
Sourcepub fn new_default() -> Self
pub fn new_default() -> Self
Create quality validator with default configuration
Sourcepub async fn validate_file_async<P: AsRef<Path>>(
&mut self,
file_path: P,
) -> TrackingResult<ValidationResult>
pub async fn validate_file_async<P: AsRef<Path>>( &mut self, file_path: P, ) -> TrackingResult<ValidationResult>
Async file validation - used for Normal Future (compatibility method)
Sourcepub fn validate_source_data(
&mut self,
data: &LocalizedExportData,
) -> TrackingResult<ValidationResult>
pub fn validate_source_data( &mut self, data: &LocalizedExportData, ) -> TrackingResult<ValidationResult>
Validate source data quality
Sourcepub fn validate_processed_shards(
&mut self,
shards: &[ProcessedShard],
original_count: usize,
) -> TrackingResult<ValidationResult>
pub fn validate_processed_shards( &mut self, shards: &[ProcessedShard], original_count: usize, ) -> TrackingResult<ValidationResult>
Validate processed shard data
Sourcepub fn validate_output_file(
&mut self,
file_path: &str,
expected_allocation_count: usize,
) -> TrackingResult<ValidationResult>
pub fn validate_output_file( &mut self, file_path: &str, expected_allocation_count: usize, ) -> TrackingResult<ValidationResult>
Validate final output file
Sourcepub fn get_stats(&self) -> &ValidationStats
pub fn get_stats(&self) -> &ValidationStats
Get validation statistics
Sourcepub fn generate_validation_report(&self) -> ValidationReport
pub fn generate_validation_report(&self) -> ValidationReport
Generate validation report
Trait Implementations§
Auto Trait Implementations§
impl Freeze for QualityValidator
impl RefUnwindSafe for QualityValidator
impl Send for QualityValidator
impl Sync for QualityValidator
impl Unpin for QualityValidator
impl UnwindSafe for QualityValidator
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> 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