pub struct DataFrame {
    pub sample: Sample,
}
Expand description

This data store works as follows:

Each data item (e.g. DataFrame) is simply appended to a data file.

An IndexEntry is appended to a corresponding index file. Each IndexEntry contains the timestamp (e.g. key) of the data item, its offset into the data file, the length of the data entry, and a CRC of the data entry as well as a CRC of itself. It also contains flags that can indicate if the corresponding data is compressed and how it is compressed.

The CRCs in the index entry give us an atomicity guarantee - if they are not present and correct, we treat it as if the entry never existed.

In dictionary compression mode, the index file may be padded with zeros (i.e. empty index entries). Thus empty index entries are not considered to be corrupt, but we ignore such entries as they do not point to any data.

Data and Index files are append-only and never modified (only ever removed).

Data and Index files are sharded by SHARD_TIME - e.g. any one file only contains data or index entries whose timestamps are congruent modulo SHARD_TIME. This allows data and index files to be cleaned up by just unlinking the files.

Fields

sample: Sample

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Deserialize this value from the given Serde deserializer. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Calls the given closure and return the result. Read more

Calls the given closure on self.

Calls the given closure on self.

Calls the given closure if condition == true.