|
15 | 15 |
|
16 | 16 | //! Implementation of MacaqueTS, a lossless compression for timestamps. MacaqueTS uses |
17 | 17 | //! optimized compression methods depending on the number of data points in a compressed segment |
18 | | -//! and if its timestamps have been sampled at a regular sampling interval. |
19 | | -//! |
20 | | -//! - (1) If a segment only contains one data point, its timestamp is stored as both the segment's |
| 18 | +//! and if its timestamps have been sampled at a regular sampling interval: |
| 19 | +//! * If a segment only contains one data point, its timestamp is stored as both the segment's |
21 | 20 | //! `start_time` and `end_time`. |
22 | | -//! - (2) If a segment only contains two data points, the timestamps are stored as the segment's |
| 21 | +//! * If a segment only contains two data points, the timestamps are stored as the segment's |
23 | 22 | //! `start_time` and `end_time`, respectively. |
24 | | -//! - (3) If a segment contains more than two data points, the first and last timestamps |
| 23 | +//! * If a segment contains more than two data points, the first and last timestamps |
25 | 24 | //! are stored as the segment's `start_time` and `end_time`, respectively, while its |
26 | | -//! residual timestamps are compressed using one of two methods. |
27 | | -//! - (1) If the data points in the segment have been collected at a regular sampling interval, |
28 | | -//! the residual timestamps are compressed as the segment's length with the |
29 | | -//! prefix zero bits stripped. |
30 | | -//! - (2) If none of the above apply, an extended version of the compression method proposed |
31 | | -//! for timestamps for the time series management system Gorilla in the [Gorilla paper] |
32 | | -//! is used as a fallback. |
| 25 | +//! residual timestamps are compressed using one of two methods: |
| 26 | +//! * If the data points in the segment have been collected at a regular sampling interval, |
| 27 | +//! the residual timestamps are compressed as the segment's length with the |
| 28 | +//! prefix zero bits stripped. |
| 29 | +//! * If none of the above apply, an extended version of the compression method proposed |
| 30 | +//! for timestamps for the time series management system Gorilla in the [Gorilla paper] |
| 31 | +//! is used as a fallback. |
33 | 32 | //! |
34 | 33 | //! MacaqueTS extends Gorilla's timestamp compression method by using zero as the first delta |
35 | 34 | //! instead of computing it explicitly. MacaqueTS also extends the flag ranges used by Gorilla |
|
0 commit comments