pub struct AnalysisResults {
pub schema_metadata: Metadata,
pub file_entropy: f64,
pub file_lz_matches: u64,
pub zstd_file_size: u64,
pub original_size: u64,
pub per_field: AHashMap<String, FieldMetrics>,
pub split_comparisons: Vec<SplitComparisonResult>,
pub custom_comparisons: Vec<GroupComparisonResult>,
}Expand description
Final computed metrics for output
Fields§
§schema_metadata: MetadataSchema name
file_entropy: f64Entropy of the whole file
file_lz_matches: u64LZ compression matches in the file
zstd_file_size: u64Actual size of the compressed data when compressed with zstandard
original_size: u64Original size of the uncompressed data
per_field: AHashMap<String, FieldMetrics>Field path → computed metrics
This is a map of full_path to FieldMetrics, such that we
can easily merge the results of different fields down the road.
split_comparisons: Vec<SplitComparisonResult>Split comparison results
custom_comparisons: Vec<GroupComparisonResult>Custom group comparison results from schema-defined comparisons
Implementations§
Source§impl AnalysisResults
impl AnalysisResults
Sourcepub fn as_field_metrics(&self) -> FieldMetrics
pub fn as_field_metrics(&self) -> FieldMetrics
Converts the file level statistics into a FieldMetrics object
which can be used for comparison with parent in places such as the
print function.
pub fn print<W: Write>( &self, writer: &mut W, schema: &Schema, format: PrintFormat, skip_misc_stats: bool, ) -> Result<()>
Trait Implementations§
Source§impl Clone for AnalysisResults
impl Clone for AnalysisResults
Source§fn clone(&self) -> AnalysisResults
fn clone(&self) -> AnalysisResults
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 Default for AnalysisResults
impl Default for AnalysisResults
Source§fn default() -> AnalysisResults
fn default() -> AnalysisResults
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for AnalysisResults
impl RefUnwindSafe for AnalysisResults
impl Send for AnalysisResults
impl Sync for AnalysisResults
impl Unpin for AnalysisResults
impl UnsafeUnpin for AnalysisResults
impl UnwindSafe for AnalysisResults
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