Skip to main content

parquet

Function parquet 

Source
pub fn parquet(recorder: &Recorder) -> Result<Vec<u8>, SimError>
Expand description

The recorded rows as an Apache Parquet file: one DOUBLE column per recorded column, named as in Recorder::columns, one row group, PLAIN encoding, no compression. Every value reads back as the exact f64 recorded. The footer’s key-value metadata names the program that wrote the file: tool = hpr-sim, tool_version = its version and designation = FS · SW · TOOL 005.

Needs the parquet feature. Returns the file’s bytes; the caller writes them.

§Errors

SimError::Domain for a value that isn’t finite, as the text exports refuse one; SimError::Unsupported for a recorder with no columns, or with more rows than a Parquet count holds.