Struct below_store::StoreWriter[][src]

pub struct StoreWriter { /* fields omitted */ }
Expand description

The StoreWriter struct maintains state to put more data in the store. It keeps track of the index and data file it’s currently working on so in the common case it can just append data. When it rolls over to a new shard, it will recreate itself.

Implementations

Create a new StoreWriter that writes data to path directory. Data serialized with format.

If compress is set, dataframes are zstd compressed.

Store data with corresponding timestamp. Errors may be returned if file operations fail.

Discard all data earlier than timestamp

We do not modify index and data files. We just look for files which can only contain earlier data and remove them.

Trait Implementations

Formats the value using the given formatter. 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 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.