pub struct PredictReport {Show 26 fields
pub file_path: String,
pub file_size: u64,
pub block_size: usize,
pub blocks_sampled: usize,
pub zero_block_pct: f64,
pub mean_entropy: f64,
pub high_entropy_pct: f64,
pub lz4_ratio: f64,
pub lz4_savings_pct: f64,
pub zstd_ratio: f64,
pub zstd_savings_pct: f64,
pub estimated_lz4_size: u64,
pub estimated_zstd_size: u64,
pub fixed_dedup_ratio: f64,
pub fixed_dedup_savings_pct: f64,
pub cdc_scan_bytes: u64,
pub cdc_min_chunk: u32,
pub cdc_avg_chunk: u32,
pub cdc_max_chunk: u32,
pub cdc_chunks_total: u64,
pub cdc_chunks_unique: u64,
pub cdc_dedup_ratio: f64,
pub cdc_dedup_savings_pct: f64,
pub estimated_packed_size_lz4_fixed: u64,
pub estimated_packed_size_zstd_cdc: u64,
pub overall_best_savings_pct: f64,
}Expand description
Results from analyzing a raw file for hexz packing potential.
Fields§
§file_path: StringPath to the analyzed file.
file_size: u64Total file size in bytes.
block_size: usizeBlock size used for sampling.
blocks_sampled: usizeNumber of blocks sampled.
zero_block_pct: f64Percentage of sampled blocks that are all-zero.
mean_entropy: f64Mean Shannon entropy of non-zero blocks.
high_entropy_pct: f64Percentage of non-zero blocks with entropy > 6.0.
lz4_ratio: f64LZ4 compression ratio (compressed / raw).
lz4_savings_pct: f64LZ4 savings as a percentage.
zstd_ratio: f64Zstd compression ratio (compressed / raw).
zstd_savings_pct: f64Zstd savings as a percentage.
estimated_lz4_size: u64Estimated file size after LZ4 compression.
estimated_zstd_size: u64Estimated file size after Zstd compression.
fixed_dedup_ratio: f64Fixed-block dedup ratio (unique / total sampled bytes).
fixed_dedup_savings_pct: f64Fixed-block dedup savings as a percentage.
cdc_scan_bytes: u64Number of bytes scanned for CDC analysis.
cdc_min_chunk: u32CDC minimum chunk size in bytes.
cdc_avg_chunk: u32CDC average chunk size in bytes.
cdc_max_chunk: u32CDC maximum chunk size in bytes.
cdc_chunks_total: u64Total CDC chunks found.
cdc_chunks_unique: u64Unique CDC chunks found.
cdc_dedup_ratio: f64CDC dedup ratio (unique / total).
cdc_dedup_savings_pct: f64CDC dedup savings as a percentage.
estimated_packed_size_lz4_fixed: u64Estimated packed size with LZ4 + fixed-block dedup.
estimated_packed_size_zstd_cdc: u64Estimated packed size with Zstd + CDC dedup.
overall_best_savings_pct: f64Best achievable savings as a percentage.
Trait Implementations§
Source§impl Debug for PredictReport
impl Debug for PredictReport
Auto Trait Implementations§
impl Freeze for PredictReport
impl RefUnwindSafe for PredictReport
impl Send for PredictReport
impl Sync for PredictReport
impl Unpin for PredictReport
impl UnsafeUnpin for PredictReport
impl UnwindSafe for PredictReport
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
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>
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>
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