(path: &Path, batches: &[&[R]])
| 87 | } |
| 88 | |
| 89 | fn write<R: TelemetryRow + Clone>(path: &Path, batches: &[&[R]]) { |
| 90 | let mut writer = TelemetryWriter::<R>::create(path).unwrap(); |
| 91 | for rows in batches { |
| 92 | writer.write(rows.to_vec()).unwrap(); |
| 93 | } |
| 94 | writer.close().unwrap(); |
| 95 | } |
| 96 | |
| 97 | fn read<R: TelemetryRow>(artifact: &[u8]) -> anyhow::Result<Vec<R>> { |
| 98 | TelemetryReader::<R, _>::new(artifact)?.collect() |
no test coverage detected